rust/tests/ui/structs-enums/struct-like-variant-construct.rs

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

19 lines
237 B
Rust
Raw Normal View History

//@ run-pass
#![allow(dead_code)]
//@ pretty-expanded FIXME #23616
enum Foo {
Bar {
a: isize,
b: isize
},
Baz {
c: f64,
d: f64
}
}
pub fn main() {
let _x = Foo::Bar { a: 2, b: 3 };
}