summaryrefslogtreecommitdiffstats
path: root/src/test/ui/error-codes/E0071.rs
blob: bd8469de75da0cf9855bf2bacf084693ba7b0c0b (plain)
1
2
3
4
5
6
7
enum Foo {}
type FooAlias = Foo;

fn main() {
    let u = FooAlias { value: 0 };
    //~^ ERROR expected struct, variant or union type, found enum `Foo` [E0071]
}