mirror of
https://git.proxmox.com/git/rustc
synced 2025-05-03 02:54:47 +00:00
10 lines
190 B
Rust
10 lines
190 B
Rust
struct Foo(isize, isize);
|
|
|
|
fn main() {
|
|
let x = Foo(1, 2);
|
|
match x { //~ ERROR non-exhaustive
|
|
Foo(1, b) => println!("{}", b),
|
|
Foo(2, b) => println!("{}", b)
|
|
}
|
|
}
|