|
| 1 | +error[E0004]: non-exhaustive patterns: `&[false, true]` not covered |
| 2 | + --> $DIR/slice-patterns.rs:29:11 |
| 3 | + | |
| 4 | +LL | match s2 { |
| 5 | + | ^^ pattern `&[false, true]` not covered |
| 6 | + | |
| 7 | + = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms |
| 8 | + |
| 9 | +error[E0004]: non-exhaustive patterns: `&[false, _, true]` not covered |
| 10 | + --> $DIR/slice-patterns.rs:34:11 |
| 11 | + | |
| 12 | +LL | match s3 { |
| 13 | + | ^^ pattern `&[false, _, true]` not covered |
| 14 | + | |
| 15 | + = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms |
| 16 | + |
| 17 | +error[E0004]: non-exhaustive patterns: `&[false, .., true]` not covered |
| 18 | + --> $DIR/slice-patterns.rs:39:11 |
| 19 | + | |
| 20 | +LL | match s { |
| 21 | + | ^ pattern `&[false, .., true]` not covered |
| 22 | + | |
| 23 | + = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms |
| 24 | + |
| 25 | +error[E0004]: non-exhaustive patterns: `&[false, _, _]` not covered |
| 26 | + --> $DIR/slice-patterns.rs:46:11 |
| 27 | + | |
| 28 | +LL | match s3 { |
| 29 | + | ^^ pattern `&[false, _, _]` not covered |
| 30 | + | |
| 31 | + = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms |
| 32 | + |
| 33 | +error[E0004]: non-exhaustive patterns: `&[_, ..]` not covered |
| 34 | + --> $DIR/slice-patterns.rs:50:11 |
| 35 | + | |
| 36 | +LL | match s { |
| 37 | + | ^ pattern `&[_, ..]` not covered |
| 38 | + | |
| 39 | + = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms |
| 40 | + |
| 41 | +error[E0004]: non-exhaustive patterns: `&[_, _, ..]` not covered |
| 42 | + --> $DIR/slice-patterns.rs:54:11 |
| 43 | + | |
| 44 | +LL | match s { |
| 45 | + | ^ pattern `&[_, _, ..]` not covered |
| 46 | + | |
| 47 | + = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms |
| 48 | + |
| 49 | +error[E0004]: non-exhaustive patterns: `&[false, ..]` not covered |
| 50 | + --> $DIR/slice-patterns.rs:59:11 |
| 51 | + | |
| 52 | +LL | match s { |
| 53 | + | ^ pattern `&[false, ..]` not covered |
| 54 | + | |
| 55 | + = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms |
| 56 | + |
| 57 | +error[E0004]: non-exhaustive patterns: `&[false, _, ..]` not covered |
| 58 | + --> $DIR/slice-patterns.rs:64:11 |
| 59 | + | |
| 60 | +LL | match s { |
| 61 | + | ^ pattern `&[false, _, ..]` not covered |
| 62 | + | |
| 63 | + = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms |
| 64 | + |
| 65 | +error[E0004]: non-exhaustive patterns: `&[_, .., false]` not covered |
| 66 | + --> $DIR/slice-patterns.rs:70:11 |
| 67 | + | |
| 68 | +LL | match s { |
| 69 | + | ^ pattern `&[_, .., false]` not covered |
| 70 | + | |
| 71 | + = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms |
| 72 | + |
| 73 | +error: unreachable pattern |
| 74 | + --> $DIR/slice-patterns.rs:79:9 |
| 75 | + | |
| 76 | +LL | [true, ..] => {} |
| 77 | + | ^^^^^^^^^^ |
| 78 | + | |
| 79 | +note: lint level defined here |
| 80 | + --> $DIR/slice-patterns.rs:2:9 |
| 81 | + | |
| 82 | +LL | #![deny(unreachable_patterns)] |
| 83 | + | ^^^^^^^^^^^^^^^^^^^^ |
| 84 | + |
| 85 | +error: unreachable pattern |
| 86 | + --> $DIR/slice-patterns.rs:80:9 |
| 87 | + | |
| 88 | +LL | [true] => {} |
| 89 | + | ^^^^^^ |
| 90 | + |
| 91 | +error: unreachable pattern |
| 92 | + --> $DIR/slice-patterns.rs:85:9 |
| 93 | + | |
| 94 | +LL | [.., true] => {} |
| 95 | + | ^^^^^^^^^^ |
| 96 | + |
| 97 | +error: unreachable pattern |
| 98 | + --> $DIR/slice-patterns.rs:86:9 |
| 99 | + | |
| 100 | +LL | [true] => {} |
| 101 | + | ^^^^^^ |
| 102 | + |
| 103 | +error: unreachable pattern |
| 104 | + --> $DIR/slice-patterns.rs:91:9 |
| 105 | + | |
| 106 | +LL | [false, .., true] => {} |
| 107 | + | ^^^^^^^^^^^^^^^^^ |
| 108 | + |
| 109 | +error: unreachable pattern |
| 110 | + --> $DIR/slice-patterns.rs:92:9 |
| 111 | + | |
| 112 | +LL | [false, true] => {} |
| 113 | + | ^^^^^^^^^^^^^ |
| 114 | + |
| 115 | +error[E0004]: non-exhaustive patterns: `&[_, _, .., true]` not covered |
| 116 | + --> $DIR/slice-patterns.rs:96:11 |
| 117 | + | |
| 118 | +LL | match s { |
| 119 | + | ^ pattern `&[_, _, .., true]` not covered |
| 120 | + | |
| 121 | + = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms |
| 122 | + |
| 123 | +error[E0004]: non-exhaustive patterns: `&[true, _, .., _]` not covered |
| 124 | + --> $DIR/slice-patterns.rs:103:11 |
| 125 | + | |
| 126 | +LL | match s { |
| 127 | + | ^ pattern `&[true, _, .., _]` not covered |
| 128 | + | |
| 129 | + = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms |
| 130 | + |
| 131 | +error: aborting due to 17 previous errors |
| 132 | + |
| 133 | +For more information about this error, try `rustc --explain E0004`. |
0 commit comments