]> git.lizzy.rs Git - rust.git/blob - src/test/ui/underscore-lifetime/dyn-trait-underscore-in-struct.stderr
Auto merge of #54624 - arielb1:evaluate-outlives, r=nikomatsakis
[rust.git] / src / test / ui / underscore-lifetime / dyn-trait-underscore-in-struct.stderr
1 error[E0106]: missing lifetime specifier
2   --> $DIR/dyn-trait-underscore-in-struct.rs:19:24
3    |
4 LL |     x: Box<dyn Debug + '_>, //~ ERROR missing lifetime specifier
5    |                        ^^ expected lifetime parameter
6
7 error[E0228]: the lifetime bound for this object type cannot be deduced from context; please supply an explicit bound
8   --> $DIR/dyn-trait-underscore-in-struct.rs:19:12
9    |
10 LL |     x: Box<dyn Debug + '_>, //~ ERROR missing lifetime specifier
11    |            ^^^^^^^^^^^^^^
12
13 error: aborting due to 2 previous errors
14
15 Some errors occurred: E0106, E0228.
16 For more information about an error, try `rustc --explain E0106`.