1
Fork 0
rust/src/test/run-pass/const-tuple-struct.rs

14 lines
172 B
Rust
Raw Normal View History

struct Bar(int, int);
const X: Bar = Bar(1, 2);
fn main() {
match X {
Bar(x, y) => {
assert x == 1;
assert y == 2;
}
}
}