| 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`. |