]> git.lizzy.rs Git - rust.git/blob - src/test/ui/underscore-lifetime/in-struct.stderr
Rollup merge of #105955 - Nilstrieb:no-trivial-opt-wrappers-we-have-field-accesses...
[rust.git] / src / test / ui / underscore-lifetime / in-struct.stderr
1 error[E0106]: missing lifetime specifier
2   --> $DIR/in-struct.rs:6:9
3    |
4 LL |     x: &'_ u32,
5    |         ^^ expected named lifetime parameter
6    |
7 help: consider introducing a named lifetime parameter
8    |
9 LL ~ struct Foo<'a> {
10 LL ~     x: &'a u32,
11    |
12
13 error[E0106]: missing lifetime specifier
14   --> $DIR/in-struct.rs:10:14
15    |
16 LL |     Variant(&'_ u32),
17    |              ^^ expected named lifetime parameter
18    |
19 help: consider introducing a named lifetime parameter
20    |
21 LL ~ enum Bar<'a> {
22 LL ~     Variant(&'a u32),
23    |
24
25 error: aborting due to 2 previous errors
26
27 For more information about this error, try `rustc --explain E0106`.