]> git.lizzy.rs Git - rust.git/blob - src/test/ui/in-band-lifetimes/issue-61124-anon-lifetime-in-struct-declaration.stderr
Rollup merge of #82259 - osa1:issue82156, r=petrochenkov
[rust.git] / src / test / ui / in-band-lifetimes / issue-61124-anon-lifetime-in-struct-declaration.stderr
1 error[E0106]: missing lifetime specifier
2   --> $DIR/issue-61124-anon-lifetime-in-struct-declaration.rs:8:19
3    |
4 LL | struct Heartbreak(Betrayal);
5    |                   ^^^^^^^^ expected named lifetime parameter
6    |
7 help: consider introducing a named lifetime parameter
8    |
9 LL | struct Heartbreak<'a>(Betrayal<'a>);
10    |                  ^^^^ ^^^^^^^^^^^^
11
12 error: aborting due to previous error
13
14 For more information about this error, try `rustc --explain E0106`.