fork/rust
git clone https://git.julia.blue/fork/rust
4560ea788cb
1.39.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 24error[E0005]: refutable pattern in local binding: `B` and `C` not covered 25 --> $DIR/non-exhaustive-defined-here.rs:36:9 26 | 27LL | / enum E { 28LL | | 29LL | | 30LL | | 31... | 32LL | | B, 33 | | - not covered 34... | 35LL | | C 36 | | - not covered 37... | 38LL | | 39LL | | } 40 | |_- `E` defined here 41... 42LL | let E::A = e; 43 | ^^^^ patterns `B` and `C` not covered 44 45error[E0004]: non-exhaustive patterns: `&B` and `&C` not covered 46 --> $DIR/non-exhaustive-defined-here.rs:40:11 47 | 48LL | / enum E { 49LL | | 50LL | | 51LL | | 52... | 53LL | | B, 54 | | - not covered 55... | 56LL | | C 57 | | - not covered 58... | 59LL | | 60LL | | } 61 | |_- `E` defined here 62... 63LL | match e { 64 | ^ patterns `&B` and `&C` not covered 65 | 66 = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms 67 68error[E0005]: refutable pattern in local binding: `&B` and `&C` not covered 69 --> $DIR/non-exhaustive-defined-here.rs:44:9 70 | 71LL | / enum E { 72LL | | 73LL | | 74LL | | 75... | 76LL | | B, 77 | | - not covered 78... | 79LL | | C 80 | | - not covered 81... | 82LL | | 83LL | | } 84 | |_- `E` defined here 85... 86LL | let E::A = e; 87 | ^^^^ patterns `&B` and `&C` not covered 88 89error[E0004]: non-exhaustive patterns: `&&mut &B` and `&&mut &C` not covered 90 --> $DIR/non-exhaustive-defined-here.rs:48:11 91 | 92LL | / enum E { 93LL | | 94LL | | 95LL | | 96... | 97LL | | B, 98 | | - not covered 99... | 100LL | | C 101 | | - not covered 102... | 103LL | | 104LL | | } 105 | |_- `E` defined here 106... 107LL | match e { 108 | ^ patterns `&&mut &B` and `&&mut &C` not covered 109 | 110 = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms 111 112error[E0005]: refutable pattern in local binding: `&&mut &B` and `&&mut &C` not covered 113 --> $DIR/non-exhaustive-defined-here.rs:52:9 114 | 115LL | / enum E { 116LL | | 117LL | | 118LL | | 119... | 120LL | | B, 121 | | - not covered 122... | 123LL | | C 124 | | - not covered 125... | 126LL | | 127LL | | } 128 | |_- `E` defined here 129... 130LL | let E::A = e; 131 | ^^^^ patterns `&&mut &B` and `&&mut &C` not covered 132 133error[E0004]: non-exhaustive patterns: `None` not covered 134 --> $DIR/non-exhaustive-defined-here.rs:65:11 135 | 136LL | / enum Opt { 137LL | | 138LL | | 139LL | | Some(u8), 140LL | | None, 141 | | ---- not covered 142LL | | 143LL | | } 144 | |_- `Opt` defined here 145... 146LL | match e { 147 | ^ pattern `None` not covered 148 | 149 = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms 150 151error[E0005]: refutable pattern in local binding: `None` not covered 152 --> $DIR/non-exhaustive-defined-here.rs:69:9 153 | 154LL | / enum Opt { 155LL | | 156LL | | 157LL | | Some(u8), 158LL | | None, 159 | | ---- not covered 160LL | | 161LL | | } 162 | |_- `Opt` defined here 163... 164LL | let Opt::Some(ref _x) = e; 165 | ^^^^^^^^^^^^^^^^^ pattern `None` not covered 166 167error: aborting due to 8 previous errors 168 169Some errors have detailed explanations: E0004, E0005. 170For more information about an error, try `rustc --explain E0004`.