14 lines
172 B
Rust
14 lines
172 B
Rust
![]() |
struct Bar(int, int);
|
||
|
|
||
|
const X: Bar = Bar(1, 2);
|
||
|
|
||
|
fn main() {
|
||
|
match X {
|
||
|
Bar(x, y) => {
|
||
|
assert x == 1;
|
||
|
assert y == 2;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|