diff options
| author | bors <bors@rust-lang.org> | 2020-03-28 00:36:57 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2020-03-28 00:36:57 +0000 |
| commit | 2acf32d9adff836a3111c039e4e10a48ee5c79b5 (patch) | |
| tree | 54bf628dc56409a7273de8a463eb89f9842e3296 /src/test/ui/pattern/usefulness/refutable-pattern-errors.stderr | |
| parent | 0bf7c2ad77fdcb18a65ae05996dc8e226fbaeab4 (diff) | |
| parent | a023e6121f4310f259378588bc60a4cf8b339fb0 (diff) | |
| download | rust-2acf32d9adff836a3111c039e4e10a48ee5c79b5.tar.gz rust-2acf32d9adff836a3111c039e4e10a48ee5c79b5.zip | |
Auto merge of #70483 - Centril:rollup-slli4yf, r=Centril
Rollup of 5 pull requests Successful merges: - #70345 (Remove `no_integrated_as` mode.) - #70434 (suggest `;` on expr `mac!()` which is good as stmt `mac!()`) - #70457 (non-exhastive diagnostic: add note re. scrutinee type) - #70478 (Refactor type_of for constants) - #70480 (clarify hir_id <-> node_id method names) Failed merges: r? @ghost
Diffstat (limited to 'src/test/ui/pattern/usefulness/refutable-pattern-errors.stderr')
| -rw-r--r-- | src/test/ui/pattern/usefulness/refutable-pattern-errors.stderr | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/test/ui/pattern/usefulness/refutable-pattern-errors.stderr b/src/test/ui/pattern/usefulness/refutable-pattern-errors.stderr index 0cf5d9cd5f1..f5895c01599 100644 --- a/src/test/ui/pattern/usefulness/refutable-pattern-errors.stderr +++ b/src/test/ui/pattern/usefulness/refutable-pattern-errors.stderr @@ -3,6 +3,8 @@ error[E0005]: refutable pattern in function argument: `(_, _)` not covered | LL | fn func((1, (Some(1), 2..=3)): (isize, (Option<isize>, isize))) { } | ^^^^^^^^^^^^^^^^^^^^^ pattern `(_, _)` not covered + | + = note: the matched value is of type `(isize, (std::option::Option<isize>, isize))` 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 @@ -12,6 +14,7 @@ LL | let (1, (Some(1), 2..=3)) = (1, (None, 2)); | = 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 + = note: the matched value is of type `(i32, (std::option::Option<i32>, i32))` 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)) { /* */ } |
