]> git.lizzy.rs Git - rust.git/blob - src/test/ui/in-band-lifetimes/issue-61124-anon-lifetime-in-struct-declaration.rs
Merge commit '2f6439ae6a6803d030cceb3ee14c9150e91b328b' into clippyup
[rust.git] / src / test / ui / in-band-lifetimes / issue-61124-anon-lifetime-in-struct-declaration.rs
1 #![deny(elided_lifetimes_in_paths)]
2
3 // Previously, the elided-lifetimes-in-path lint would fire, but we don't want
4 // that, because `'_` isn't legal in struct declarations.
5
6 struct Betrayal<'a> { x: &'a u8 }
7
8 struct Heartbreak(Betrayal);  //~ ERROR missing lifetime specifier
9
10 fn main() {}