]> git.proxmox.com Git - rustc.git/blame - src/test/ui/pattern/usefulness/match-arm-statics-2.stderr
New upstream version 1.48.0~beta.8+dfsg1
[rustc.git] / src / test / ui / pattern / usefulness / match-arm-statics-2.stderr
CommitLineData
b7449926 1error[E0004]: non-exhaustive patterns: `(true, false)` not covered
e74abb32 2 --> $DIR/match-arm-statics-2.rs:17:11
b7449926
XL
3 |
4LL | match (true, false) {
5 | ^^^^^^^^^^^^^ pattern `(true, false)` not covered
532ac7d7
XL
6 |
7 = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
ba9703b0 8 = note: the matched value is of type `(bool, bool)`
b7449926
XL
9
10error[E0004]: non-exhaustive patterns: `Some(Some(West))` not covered
e74abb32 11 --> $DIR/match-arm-statics-2.rs:29:11
b7449926
XL
12 |
13LL | match Some(Some(North)) {
14 | ^^^^^^^^^^^^^^^^^ pattern `Some(Some(West))` not covered
ba9703b0 15 |
3dfed10e 16 ::: $SRC_DIR/core/src/option.rs:LL:COL
ba9703b0
XL
17 |
18LL | Some(#[stable(feature = "rust1", since = "1.0.0")] T),
19 | ----
20 | |
21 | not covered
22 | not covered
532ac7d7
XL
23 |
24 = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
1b1a35ee 25 = note: the matched value is of type `Option<Option<Direction>>`
b7449926
XL
26
27error[E0004]: non-exhaustive patterns: `Foo { bar: Some(North), baz: NewBool(true) }` not covered
e74abb32 28 --> $DIR/match-arm-statics-2.rs:48:11
b7449926 29 |
532ac7d7
XL
30LL | / struct Foo {
31LL | | bar: Option<Direction>,
32LL | | baz: NewBool
33LL | | }
34 | |_- `Foo` defined here
35...
36LL | match (Foo { bar: Some(North), baz: NewBool(true) }) {
37 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pattern `Foo { bar: Some(North), baz: NewBool(true) }` not covered
38 |
39 = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
ba9703b0 40 = note: the matched value is of type `Foo`
b7449926
XL
41
42error: aborting due to 3 previous errors
43
44For more information about this error, try `rustc --explain E0004`.