2014-10-25 17:07:41 -05:00
|
|
|
enum Foo {
|
2015-01-08 05:02:42 -06:00
|
|
|
Variant { x: usize }
|
2014-10-25 17:07:41 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {
|
2016-08-22 00:57:37 -05:00
|
|
|
let f = Foo::Variant(42);
|
2022-10-25 11:15:15 -05:00
|
|
|
//~^ ERROR expected value, found struct variant `Foo::Variant`
|
2014-10-25 17:07:41 -05:00
|
|
|
}
|