blob: af0a3cbcb2d8167673df45f277b1729a852a2cd1 [file] [log] [blame]
enum Foo {
Variant { x: usize }
}
fn main() {
let f = Foo::Variant(42);
//~^ ERROR expected function, tuple struct or tuple variant, found struct variant `Foo::Variant`
}