fork/rust
git clone https://git.julia.blue/fork/rust
49cae55760d
1.44.0
1error[E0004]: non-exhaustive patterns: `B` and `C` not covered 2 --> $DIR/non-exhaustive-defined-here.rs:32:11 3 | 4LL | / enum E { 5LL | | 6LL | | 7LL | | 8... | 9LL | | B, 10 | | - not covered 11... | 12LL | | C 13 | | - not covered 14... | 15LL | | 16LL | | } 17 | |_- `E` defined here 18... 19LL | match e1 { 20 | ^^ patterns `B` and `C` not covered 21 | 22 = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms 23 = note: the matched value is of type `E` 24 25error[E0005]: refutable pattern in local binding: `B` and `C` not covered 26 --> $DIR/non-exhaustive-defined-here.rs:36:9 27 | 28LL | / enum E { 29LL | | 30LL | | 31LL | | 32... | 33LL | | B, 34 | | - not covered 35... | 36LL | | C 37 | | - not covered 38... | 39LL | | 40LL | | } 41 | |_- `E` defined here 42... 43LL | let E::A = e; 44 | ^^^^ patterns `B` and `C` not covered 45 | 46 = note: `let` bindings require an "irrefutable pattern", like a `struct` or an `enum` with only one variant 47 = note: for more information, visit https://doc.rust-lang.org/book/ch18-02-refutability.html 48 = note: the matched value is of type `E` 49help: you might want to use `if let` to ignore the variant that isn't matched 50 | 51LL | if let E::A = e { /* */ } 52 | ^^^^^^^^^^^^^^^^^^^^^^^^^ 53 54error[E0004]: non-exhaustive patterns: `&B` and `&C` not covered 55 --> $DIR/non-exhaustive-defined-here.rs:40:11 56 | 57LL | / enum E { 58LL | | 59LL | | 60LL | | 61... | 62LL | | B, 63 | | - not covered 64... | 65LL | | C 66 | | - not covered 67... | 68LL | | 69LL | | } 70 | |_- `E` defined here 71... 72LL | match e { 73 | ^ patterns `&B` and `&C` not covered 74 | 75 = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms 76 = note: the matched value is of type `&E` 77 78error[E0005]: refutable pattern in local binding: `&B` and `&C` not covered 79 --> $DIR/non-exhaustive-defined-here.rs:44:9 80 | 81LL | / enum E { 82LL | | 83LL | | 84LL | | 85... | 86LL | | B, 87 | | - not covered 88... | 89LL | | C 90 | | - not covered 91... | 92LL | | 93LL | | } 94 | |_- `E` defined here 95... 96LL | let E::A = e; 97 | ^^^^ patterns `&B` and `&C` not covered 98 | 99 = note: `let` bindings require an "irrefutable pattern", like a `struct` or an `enum` with only one variant 100 = note: for more information, visit https://doc.rust-lang.org/book/ch18-02-refutability.html 101 = note: the matched value is of type `&E` 102help: you might want to use `if let` to ignore the variant that isn't matched 103 | 104LL | if let E::A = e { /* */ } 105 | ^^^^^^^^^^^^^^^^^^^^^^^^^ 106 107error[E0004]: non-exhaustive patterns: `&&mut &B` and `&&mut &C` not covered 108 --> $DIR/non-exhaustive-defined-here.rs:48:11 109 | 110LL | / enum E { 111LL | | 112LL | | 113LL | | 114... | 115LL | | B, 116 | | - not covered 117... | 118LL | | C 119 | | - not covered 120... | 121LL | | 122LL | | } 123 | |_- `E` defined here 124... 125LL | match e { 126 | ^ patterns `&&mut &B` and `&&mut &C` not covered 127 | 128 = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms 129 = note: the matched value is of type `&&mut &E` 130 131error[E0005]: refutable pattern in local binding: `&&mut &B` and `&&mut &C` not covered 132 --> $DIR/non-exhaustive-defined-here.rs:52:9 133 | 134LL | / enum E { 135LL | | 136LL | | 137LL | | 138... | 139LL | | B, 140 | | - not covered 141... | 142LL | | C 143 | | - not covered 144... | 145LL | | 146LL | | } 147 | |_- `E` defined here 148... 149LL | let E::A = e; 150 | ^^^^ patterns `&&mut &B` and `&&mut &C` not covered 151 | 152 = note: `let` bindings require an "irrefutable pattern", like a `struct` or an `enum` with only one variant 153 = note: for more information, visit https://doc.rust-lang.org/book/ch18-02-refutability.html 154 = note: the matched value is of type `&&mut &E` 155help: you might want to use `if let` to ignore the variant that isn't matched 156 | 157LL | if let E::A = e { /* */ } 158 | 159 160error[E0004]: non-exhaustive patterns: `None` not covered 161 --> $DIR/non-exhaustive-defined-here.rs:65:11 162 | 163LL | / enum Opt { 164LL | | 165LL | | 166LL | | Some(u8), 167LL | | None, 168 | | ---- not covered 169LL | | 170LL | | } 171 | |_- `Opt` defined here 172... 173LL | match e { 174 | ^ pattern `None` not covered 175 | 176 = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms 177 = note: the matched value is of type `Opt` 178 179error[E0005]: refutable pattern in local binding: `None` not covered 180 --> $DIR/non-exhaustive-defined-here.rs:69:9 181 | 182LL | / enum Opt { 183LL | | 184LL | | 185LL | | Some(u8), 186LL | | None, 187 | | ---- not covered 188LL | | 189LL | | } 190 | |_- `Opt` defined here 191... 192LL | let Opt::Some(ref _x) = e; 193 | ^^^^^^^^^^^^^^^^^ pattern `None` not covered 194 | 195 = note: `let` bindings require an "irrefutable pattern", like a `struct` or an `enum` with only one variant 196 = note: for more information, visit https://doc.rust-lang.org/book/ch18-02-refutability.html 197 = note: the matched value is of type `Opt` 198help: you might want to use `if let` to ignore the variant that isn't matched 199 | 200LL | if let Opt::Some(ref _x) = e { /* */ } 201 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 202 203error: aborting due to 8 previous errors 204 205Some errors have detailed explanations: E0004, E0005. 206For more information about an error, try `rustc --explain E0004`.