summaryrefslogtreecommitdiffstats
path: root/tests/ui/regions/regions-in-enums-anon.rs
blob: da65cb791ec27c2f48903aa16e0c1624dcb889d2 (plain)
1
2
3
4
5
6
7
// Test that anonymous lifetimes are not permitted in enum declarations

enum Foo {
    Bar(&isize) //~ ERROR missing lifetime specifier
}

fn main() {}