The only remaining constant patterns are opaque

This commit is contained in:
Nadrieril 2020-10-18 13:48:54 +01:00
parent d1a784e7b9
commit da0ba2f645
4 changed files with 50 additions and 37 deletions

View file

@ -106,8 +106,7 @@ fn main() {
match QUUX {
QUUX => {}
QUUX => {} // should not be emitting unreachable warning
//~^ ERROR unreachable pattern
QUUX => {}
_ => {}
}
}

View file

@ -144,11 +144,5 @@ error: unreachable pattern
LL | _ => {} // should not be emitting unreachable warning
| ^
error: unreachable pattern
--> $DIR/consts-opaque.rs:109:9
|
LL | QUUX => {} // should not be emitting unreachable warning
| ^^^^
error: aborting due to 23 previous errors
error: aborting due to 22 previous errors