granite-rust/src/test/ui/underscore-lifetime/dyn-trait-underscore-in-struct.stderr

23 lines
719 B
Text
Raw Normal View History

error[E0106]: missing lifetime specifier
2018-12-25 08:56:47 -07:00
--> $DIR/dyn-trait-underscore-in-struct.rs:9:24
|
2019-03-09 15:03:44 +03:00
LL | x: Box<dyn Debug + '_>,
| ^^ expected named lifetime parameter
|
2020-01-16 22:05:31 -08:00
help: consider introducing a named lifetime parameter
|
2020-01-27 14:08:59 -08:00
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
2018-12-25 08:56:47 -07:00
--> $DIR/dyn-trait-underscore-in-struct.rs:9:12
|
2019-03-09 15:03:44 +03:00
LL | x: Box<dyn Debug + '_>,
| ^^^^^^^^^^^^^^
error: aborting due to 2 previous errors
2020-05-11 17:28:24 -07:00
Some errors have detailed explanations: E0106, E0228.
For more information about an error, try `rustc --explain E0106`.