rust/tests/ui/resolve/issue-18252.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

9 lines
150 B
Rust
Raw Normal View History

2014-10-25 17:07:41 -05:00
enum Foo {
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);
//~^ ERROR expected value, found struct variant `Foo::Variant`
2014-10-25 17:07:41 -05:00
}