fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #69854 - pietroalbini:stable-next, r=Centrilb8cedc00407

1.42.0
495 B14 linesraw
1error[E0106]: missing lifetime specifier
2  --> $DIR/issue-61124-anon-lifetime-in-struct-declaration.rs:8:19
3   |
4LL | struct Heartbreak(Betrayal);
5   |                   ^^^^^^^^ expected named lifetime parameter
6   |
7help: consider introducing a named lifetime parameter
8   |
9LL | struct Heartbreak<'lifetime>(Betrayal<'lifetime>);
10   |                  ^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^
11
12error: aborting due to previous error
13
14For more information about this error, try `rustc --explain E0106`.