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 22:07:41 +00:00
enum Foo {
Variant { x: usize }
2014-10-25 22:07:41 +00:00
}
fn main() {
2016-08-22 05:57:37 +00:00
let f = Foo::Variant(42);
//~^ ERROR expected value, found struct variant `Foo::Variant`
2014-10-25 22:07:41 +00:00
}