2018-03-21 06:31:39 -04:00
|
|
|
error[E0106]: missing lifetime specifier
|
2018-12-25 08:56:47 -07:00
|
|
|
--> $DIR/dyn-trait-underscore-in-struct.rs:9:24
|
2018-03-21 06:31:39 -04:00
|
|
|
|
|
2019-03-09 15:03:44 +03:00
|
|
|
LL | x: Box<dyn Debug + '_>,
|
2020-01-15 18:35:48 -08:00
|
|
|
| ^^ expected named lifetime parameter
|
|
|
|
|
|
|
|
|
help: consider introducing a named lifetime
|
|
|
|
|
|
|
|
|
LL | struct Foo<'lifetime> {
|
|
|
|
LL | x: Box<dyn Debug + 'lifetime>,
|
|
|
|
|
|
2018-03-21 06:31:39 -04:00
|
|
|
|
|
|
|
error[E0228]: the lifetime bound for this object type cannot be deduced from context; please supply an explicit bound
|
2018-12-25 08:56:47 -07:00
|
|
|
--> $DIR/dyn-trait-underscore-in-struct.rs:9:12
|
2018-03-21 06:31:39 -04:00
|
|
|
|
|
2019-03-09 15:03:44 +03:00
|
|
|
LL | x: Box<dyn Debug + '_>,
|
2018-03-21 06:31:39 -04:00
|
|
|
| ^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|
2019-04-17 13:26:38 -04:00
|
|
|
For more information about this error, try `rustc --explain E0106`.
|