1 2 3 4 5 6 7 8 9
// Test that enum variants are not actually types. enum Foo { Bar } fn foo(x: Foo::Bar) {} //~ ERROR expected type, found variant `Foo::Bar` fn main() {}