]> git.lizzy.rs Git - rust.git/blob - src/test/ui/regions/regions-in-structs-anon.rs
Rollup merge of #106043 - c410-f3r:moar-errors, r=petrochenkov
[rust.git] / src / test / ui / regions / regions-in-structs-anon.rs
1 // Test that anonymous lifetimes are not permitted in struct declarations
2
3 struct Foo {
4     x: &isize //~ ERROR missing lifetime specifier
5 }
6
7 fn main() {}