err on all-but-B, not just on C
This commit is contained in:
parent
7e65c44714
commit
d53d7f77a0
@ -40,8 +40,9 @@ fn discriminant_overflow() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
let x = Foo::B;
|
let x = Foo::B;
|
||||||
if let Foo::C(_) = x {
|
match x {
|
||||||
panic!();
|
Foo::B => {},
|
||||||
|
_ => panic!(),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user