blob: b865278e25fd8de5e40aa7ea51211f14f08fba37 [file] [log] [blame]
error[E0106]: missing lifetime specifier
--> $DIR/dyn-trait-underscore-in-struct.rs:9:24
|
LL | x: Box<dyn Debug + '_>,
| ^^ expected named lifetime parameter
|
help: consider introducing a named lifetime parameter
|
LL ~ struct Foo<'a> {
LL ~ x: Box<dyn Debug + 'a>,
|
error[E0228]: the lifetime bound for this object type cannot be deduced from context; please supply an explicit bound
--> $DIR/dyn-trait-underscore-in-struct.rs:9:12
|
LL | x: Box<dyn Debug + '_>,
| ^^^^^^^^^^^^^^
error: aborting due to 2 previous errors
Some errors have detailed explanations: E0106, E0228.
For more information about an error, try `rustc --explain E0106`.