rust/src/test/run-pass/struct-like-variant-construct.rs

16 lines
160 B
Rust
Raw Normal View History

enum Foo {
Bar {
a: int,
b: int
},
Baz {
c: float,
d: float
}
}
fn main() {
let x = Bar { a: 2, b: 3 };
}