summaryrefslogtreecommitdiffstats
path: root/src/test/ui/regions/regions-in-structs-anon.rs
blob: 7cb2ce0dbf3f449cb43b067d74f286bf7b94d574 (plain)
1
2
3
4
5
6
7
// Test that anonymous lifetimes are not permitted in struct declarations

struct Foo {
    x: &isize //~ ERROR missing lifetime specifier
}

fn main() {}