]> git.lizzy.rs Git - rust.git/blob - src/test/ui/in-band-lifetimes/issue-61124-anon-lifetime-in-struct-declaration.rs
Auto merge of #75936 - sdroege:chunks-exact-construction-bounds-check, r=nagisa
[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() {}