Sign in
fuchsia
/
third_party
/
rust
/
f233a4c18bec906dab0b8531f326a15fadece547
/
.
/
src
/
test
/
ui
/
tuple
/
tuple-struct-nonexhaustive.rs
blob: 76bcf3fbd4d100abadb66ef0ed533c097ab1d108 [
file
] [
log
] [
blame
]
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
)
}
}