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

17 lines
645 B
Plaintext
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
|
LL | x: Box<dyn Debug + '_>, //~ ERROR missing lifetime specifier
| ^^ expected lifetime parameter
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
|
LL | x: Box<dyn Debug + '_>, //~ ERROR missing lifetime specifier
| ^^^^^^^^^^^^^^
error: aborting due to 2 previous errors
Some errors occurred: E0106, E0228.
For more information about an error, try `rustc --explain E0106`.