diff options
Diffstat (limited to 'src/test/ui/rfc-2294-if-let-guard/warns.rs')
| -rw-r--r-- | src/test/ui/rfc-2294-if-let-guard/warns.rs | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/src/test/ui/rfc-2294-if-let-guard/warns.rs b/src/test/ui/rfc-2294-if-let-guard/warns.rs deleted file mode 100644 index 3ad1a50c61f..00000000000 --- a/src/test/ui/rfc-2294-if-let-guard/warns.rs +++ /dev/null @@ -1,21 +0,0 @@ -#![feature(if_let_guard)] - -#[deny(irrefutable_let_patterns)] -fn irrefutable_let_guard() { - match Some(()) { - Some(x) if let () = x => {} - //~^ ERROR irrefutable `if let` guard - _ => {} - } -} - -#[deny(unreachable_patterns)] -fn unreachable_pattern() { - match Some(()) { - x if let None | None = x => {} - //~^ ERROR unreachable pattern - _ => {} - } -} - -fn main() {} |
