diff options
| author | Nadrieril <nadrieril@gmail.com> | 2019-09-28 16:05:38 +0200 |
|---|---|---|
| committer | Nadrieril <nadrieril@gmail.com> | 2019-10-27 21:20:26 +0000 |
| commit | 09f9947ebc68a8199c3dff8607a41571c48cc377 (patch) | |
| tree | fb81c258de9902ea813c24c5ca08bcce9817a4bb /src/test/ui/refutable-pattern-errors.stderr | |
| parent | 0f677c65e867d93a47ccbaeaf6e6725cde8c5ff6 (diff) | |
| download | rust-09f9947ebc68a8199c3dff8607a41571c48cc377.tar.gz rust-09f9947ebc68a8199c3dff8607a41571c48cc377.zip | |
Gather together usefulness tests
I took most tests that were testing only for match exhaustiveness, pattern refutability or match arm reachability, and put them in the same test folder.
Diffstat (limited to 'src/test/ui/refutable-pattern-errors.stderr')
| -rw-r--r-- | src/test/ui/refutable-pattern-errors.stderr | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/src/test/ui/refutable-pattern-errors.stderr b/src/test/ui/refutable-pattern-errors.stderr deleted file mode 100644 index 0cf5d9cd5f1..00000000000 --- a/src/test/ui/refutable-pattern-errors.stderr +++ /dev/null @@ -1,22 +0,0 @@ -error[E0005]: refutable pattern in function argument: `(_, _)` not covered - --> $DIR/refutable-pattern-errors.rs:3:9 - | -LL | fn func((1, (Some(1), 2..=3)): (isize, (Option<isize>, isize))) { } - | ^^^^^^^^^^^^^^^^^^^^^ pattern `(_, _)` not covered - -error[E0005]: refutable pattern in local binding: `(std::i32::MIN..=0i32, _)` and `(2i32..=std::i32::MAX, _)` not covered - --> $DIR/refutable-pattern-errors.rs:7:9 - | -LL | let (1, (Some(1), 2..=3)) = (1, (None, 2)); - | ^^^^^^^^^^^^^^^^^^^^^ patterns `(std::i32::MIN..=0i32, _)` and `(2i32..=std::i32::MAX, _)` not covered - | - = note: `let` bindings require an "irrefutable pattern", like a `struct` or an `enum` with only one variant - = note: for more information, visit https://doc.rust-lang.org/book/ch18-02-refutability.html -help: you might want to use `if let` to ignore the variant that isn't matched - | -LL | if let (1, (Some(1), 2..=3)) = (1, (None, 2)) { /* */ } - | - -error: aborting due to 2 previous errors - -For more information about this error, try `rustc --explain E0005`. |
