fork/rust
git clone https://git.julia.blue/fork/rust
49cae55760d
1.44.0
1error: unreachable pattern 2 --> $DIR/match-empty-exhaustive_patterns.rs:47:9 3 | 4LL | _ => {}, 5 | ^ 6 | 7note: the lint level is defined here 8 --> $DIR/match-empty-exhaustive_patterns.rs:3:9 9 | 10LL | #![deny(unreachable_patterns)] 11 | ^^^^^^^^^^^^^^^^^^^^ 12 13error: unreachable pattern 14 --> $DIR/match-empty-exhaustive_patterns.rs:50:9 15 | 16LL | _ if false => {}, 17 | ^ 18 19error: unreachable pattern 20 --> $DIR/match-empty-exhaustive_patterns.rs:57:9 21 | 22LL | Some(_) => {} 23 | ^^^^^^^ 24 25error: unreachable pattern 26 --> $DIR/match-empty-exhaustive_patterns.rs:61:9 27 | 28LL | Some(_) => {} 29 | ^^^^^^^ 30 31error[E0004]: non-exhaustive patterns: type `u8` is non-empty 32 --> $DIR/match-empty-exhaustive_patterns.rs:64:18 33 | 34LL | match_empty!(0u8); 35 | ^^^ 36 | 37 = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms 38 = note: the matched value is of type `u8` 39 40error[E0004]: non-exhaustive patterns: type `NonEmptyStruct` is non-empty 41 --> $DIR/match-empty-exhaustive_patterns.rs:66:18 42 | 43LL | struct NonEmptyStruct(bool); 44 | ---------------------------- `NonEmptyStruct` defined here 45... 46LL | match_empty!(NonEmptyStruct(true)); 47 | ^^^^^^^^^^^^^^^^^^^^ 48 | 49 = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms 50 = note: the matched value is of type `NonEmptyStruct` 51 52error[E0004]: non-exhaustive patterns: type `NonEmptyUnion1` is non-empty 53 --> $DIR/match-empty-exhaustive_patterns.rs:68:18 54 | 55LL | / union NonEmptyUnion1 { 56LL | | foo: (), 57LL | | } 58 | |_- `NonEmptyUnion1` defined here 59... 60LL | match_empty!((NonEmptyUnion1 { foo: () })); 61 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 62 | 63 = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms 64 = note: the matched value is of type `NonEmptyUnion1` 65 66error[E0004]: non-exhaustive patterns: type `NonEmptyUnion2` is non-empty 67 --> $DIR/match-empty-exhaustive_patterns.rs:70:18 68 | 69LL | / union NonEmptyUnion2 { 70LL | | foo: (), 71LL | | bar: (), 72LL | | } 73 | |_- `NonEmptyUnion2` defined here 74... 75LL | match_empty!((NonEmptyUnion2 { foo: () })); 76 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 77 | 78 = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms 79 = note: the matched value is of type `NonEmptyUnion2` 80 81error[E0004]: non-exhaustive patterns: `Foo(_)` not covered 82 --> $DIR/match-empty-exhaustive_patterns.rs:72:18 83 | 84LL | / enum NonEmptyEnum1 { 85LL | | Foo(bool), 86 | | --- not covered 87LL | | 88LL | | 89LL | | } 90 | |_- `NonEmptyEnum1` defined here 91... 92LL | match_empty!(NonEmptyEnum1::Foo(true)); 93 | ^^^^^^^^^^^^^^^^^^^^^^^^ pattern `Foo(_)` not covered 94 | 95 = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms 96 = note: the matched value is of type `NonEmptyEnum1` 97 98error[E0004]: non-exhaustive patterns: `Foo(_)` and `Bar` not covered 99 --> $DIR/match-empty-exhaustive_patterns.rs:74:18 100 | 101LL | / enum NonEmptyEnum2 { 102LL | | Foo(bool), 103 | | --- not covered 104LL | | 105LL | | 106LL | | Bar, 107 | | --- not covered 108LL | | 109LL | | 110LL | | } 111 | |_- `NonEmptyEnum2` defined here 112... 113LL | match_empty!(NonEmptyEnum2::Foo(true)); 114 | ^^^^^^^^^^^^^^^^^^^^^^^^ patterns `Foo(_)` and `Bar` not covered 115 | 116 = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms 117 = note: the matched value is of type `NonEmptyEnum2` 118 119error[E0004]: non-exhaustive patterns: `V1`, `V2`, `V3` and 2 more not covered 120 --> $DIR/match-empty-exhaustive_patterns.rs:76:18 121 | 122LL | / enum NonEmptyEnum5 { 123LL | | V1, V2, V3, V4, V5, 124LL | | } 125 | |_- `NonEmptyEnum5` defined here 126... 127LL | match_empty!(NonEmptyEnum5::V1); 128 | ^^^^^^^^^^^^^^^^^ patterns `V1`, `V2`, `V3` and 2 more not covered 129 | 130 = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms 131 = note: the matched value is of type `NonEmptyEnum5` 132 133error[E0004]: non-exhaustive patterns: `_` not covered 134 --> $DIR/match-empty-exhaustive_patterns.rs:79:18 135 | 136LL | match_false!(0u8); 137 | ^^^ pattern `_` not covered 138 | 139 = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms 140 = note: the matched value is of type `u8` 141 142error[E0004]: non-exhaustive patterns: `NonEmptyStruct(_)` not covered 143 --> $DIR/match-empty-exhaustive_patterns.rs:81:18 144 | 145LL | struct NonEmptyStruct(bool); 146 | ---------------------------- `NonEmptyStruct` defined here 147... 148LL | match_false!(NonEmptyStruct(true)); 149 | ^^^^^^^^^^^^^^^^^^^^ pattern `NonEmptyStruct(_)` not covered 150 | 151 = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms 152 = note: the matched value is of type `NonEmptyStruct` 153 154error[E0004]: non-exhaustive patterns: `NonEmptyUnion1 { .. }` not covered 155 --> $DIR/match-empty-exhaustive_patterns.rs:83:18 156 | 157LL | / union NonEmptyUnion1 { 158LL | | foo: (), 159LL | | } 160 | |_- `NonEmptyUnion1` defined here 161... 162LL | match_false!((NonEmptyUnion1 { foo: () })); 163 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pattern `NonEmptyUnion1 { .. }` not covered 164 | 165 = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms 166 = note: the matched value is of type `NonEmptyUnion1` 167 168error[E0004]: non-exhaustive patterns: `NonEmptyUnion2 { .. }` not covered 169 --> $DIR/match-empty-exhaustive_patterns.rs:85:18 170 | 171LL | / union NonEmptyUnion2 { 172LL | | foo: (), 173LL | | bar: (), 174LL | | } 175 | |_- `NonEmptyUnion2` defined here 176... 177LL | match_false!((NonEmptyUnion2 { foo: () })); 178 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pattern `NonEmptyUnion2 { .. }` not covered 179 | 180 = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms 181 = note: the matched value is of type `NonEmptyUnion2` 182 183error[E0004]: non-exhaustive patterns: `Foo(_)` not covered 184 --> $DIR/match-empty-exhaustive_patterns.rs:87:18 185 | 186LL | / enum NonEmptyEnum1 { 187LL | | Foo(bool), 188 | | --- not covered 189LL | | 190LL | | 191LL | | } 192 | |_- `NonEmptyEnum1` defined here 193... 194LL | match_false!(NonEmptyEnum1::Foo(true)); 195 | ^^^^^^^^^^^^^^^^^^^^^^^^ pattern `Foo(_)` not covered 196 | 197 = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms 198 = note: the matched value is of type `NonEmptyEnum1` 199 200error[E0004]: non-exhaustive patterns: `Foo(_)` and `Bar` not covered 201 --> $DIR/match-empty-exhaustive_patterns.rs:89:18 202 | 203LL | / enum NonEmptyEnum2 { 204LL | | Foo(bool), 205 | | --- not covered 206LL | | 207LL | | 208LL | | Bar, 209 | | --- not covered 210LL | | 211LL | | 212LL | | } 213 | |_- `NonEmptyEnum2` defined here 214... 215LL | match_false!(NonEmptyEnum2::Foo(true)); 216 | ^^^^^^^^^^^^^^^^^^^^^^^^ patterns `Foo(_)` and `Bar` not covered 217 | 218 = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms 219 = note: the matched value is of type `NonEmptyEnum2` 220 221error[E0004]: non-exhaustive patterns: `V1`, `V2`, `V3` and 2 more not covered 222 --> $DIR/match-empty-exhaustive_patterns.rs:91:18 223 | 224LL | / enum NonEmptyEnum5 { 225LL | | V1, V2, V3, V4, V5, 226LL | | } 227 | |_- `NonEmptyEnum5` defined here 228... 229LL | match_false!(NonEmptyEnum5::V1); 230 | ^^^^^^^^^^^^^^^^^ patterns `V1`, `V2`, `V3` and 2 more not covered 231 | 232 = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms 233 = note: the matched value is of type `NonEmptyEnum5` 234 235error: aborting due to 18 previous errors 236 237For more information about this error, try `rustc --explain E0004`.