fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error: to use a constant of type `Foo` in a pattern, `Foo` must be annotated with `#[derive(PartialEq, Eq)]` 2 --> $DIR/consts-opaque.rs:31:9 3 | 4LL | FOO => {} 5 | ^^^ 6 | 7 = note: the traits must be derived, manual `impl`s are not sufficient 8 = note: see https://doc.rust-lang.org/stable/std/marker/trait.StructuralEq.html for details 9 10error: to use a constant of type `Foo` in a pattern, `Foo` must be annotated with `#[derive(PartialEq, Eq)]` 11 --> $DIR/consts-opaque.rs:38:9 12 | 13LL | FOO_REF => {} 14 | ^^^^^^^ 15 | 16 = note: the traits must be derived, manual `impl`s are not sufficient 17 = note: see https://doc.rust-lang.org/stable/std/marker/trait.StructuralEq.html for details 18 19warning: to use a constant of type `Foo` in a pattern, `Foo` must be annotated with `#[derive(PartialEq, Eq)]` 20 --> $DIR/consts-opaque.rs:46:9 21 | 22LL | FOO_REF_REF => {} 23 | ^^^^^^^^^^^ 24 | 25 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! 26 = note: for more information, see issue #62411 <https://github.com/rust-lang/rust/issues/62411> 27 = note: the traits must be derived, manual `impl`s are not sufficient 28 = note: see https://doc.rust-lang.org/stable/std/marker/trait.StructuralEq.html for details 29 = note: `#[warn(indirect_structural_match)]` on by default 30 31error: to use a constant of type `Bar` in a pattern, `Bar` must be annotated with `#[derive(PartialEq, Eq)]` 32 --> $DIR/consts-opaque.rs:54:9 33 | 34LL | BAR => {} // should not be emitting unreachable warning 35 | ^^^ 36 | 37 = note: the traits must be derived, manual `impl`s are not sufficient 38 = note: see https://doc.rust-lang.org/stable/std/marker/trait.StructuralEq.html for details 39 40error: to use a constant of type `Bar` in a pattern, `Bar` must be annotated with `#[derive(PartialEq, Eq)]` 41 --> $DIR/consts-opaque.rs:62:9 42 | 43LL | BAR => {} 44 | ^^^ 45 | 46 = note: the traits must be derived, manual `impl`s are not sufficient 47 = note: see https://doc.rust-lang.org/stable/std/marker/trait.StructuralEq.html for details 48 49error: to use a constant of type `Bar` in a pattern, `Bar` must be annotated with `#[derive(PartialEq, Eq)]` 50 --> $DIR/consts-opaque.rs:71:9 51 | 52LL | BAR => {} 53 | ^^^ 54 | 55 = note: the traits must be derived, manual `impl`s are not sufficient 56 = note: see https://doc.rust-lang.org/stable/std/marker/trait.StructuralEq.html for details 57 58error: to use a constant of type `Bar` in a pattern, `Bar` must be annotated with `#[derive(PartialEq, Eq)]` 59 --> $DIR/consts-opaque.rs:73:9 60 | 61LL | BAR => {} // should not be emitting unreachable warning 62 | ^^^ 63 | 64 = note: the traits must be derived, manual `impl`s are not sufficient 65 = note: see https://doc.rust-lang.org/stable/std/marker/trait.StructuralEq.html for details 66 67error: to use a constant of type `Baz` in a pattern, `Baz` must be annotated with `#[derive(PartialEq, Eq)]` 68 --> $DIR/consts-opaque.rs:81:9 69 | 70LL | BAZ => {} 71 | ^^^ 72 | 73 = note: the traits must be derived, manual `impl`s are not sufficient 74 = note: see https://doc.rust-lang.org/stable/std/marker/trait.StructuralEq.html for details 75 76error: to use a constant of type `Baz` in a pattern, `Baz` must be annotated with `#[derive(PartialEq, Eq)]` 77 --> $DIR/consts-opaque.rs:91:9 78 | 79LL | BAZ => {} 80 | ^^^ 81 | 82 = note: the traits must be derived, manual `impl`s are not sufficient 83 = note: see https://doc.rust-lang.org/stable/std/marker/trait.StructuralEq.html for details 84 85error: to use a constant of type `Baz` in a pattern, `Baz` must be annotated with `#[derive(PartialEq, Eq)]` 86 --> $DIR/consts-opaque.rs:98:9 87 | 88LL | BAZ => {} 89 | ^^^ 90 | 91 = note: the traits must be derived, manual `impl`s are not sufficient 92 = note: see https://doc.rust-lang.org/stable/std/marker/trait.StructuralEq.html for details 93 94error: unreachable pattern 95 --> $DIR/consts-opaque.rs:33:9 96 | 97LL | FOO => {} 98 | --- matches any value 99LL | 100LL | _ => {} // should not be emitting unreachable warning 101 | ^ unreachable pattern 102 | 103note: the lint level is defined here 104 --> $DIR/consts-opaque.rs:6:9 105 | 106LL | #![deny(unreachable_patterns)] 107 | ^^^^^^^^^^^^^^^^^^^^ 108 109error: unreachable pattern 110 --> $DIR/consts-opaque.rs:40:9 111 | 112LL | FOO_REF => {} 113 | ------- matches any value 114LL | 115LL | Foo(_) => {} // should not be emitting unreachable warning 116 | ^^^^^^ unreachable pattern 117 118error: unreachable pattern 119 --> $DIR/consts-opaque.rs:54:9 120 | 121LL | Bar => {} 122 | --- matches any value 123LL | BAR => {} // should not be emitting unreachable warning 124 | ^^^ unreachable pattern 125 126error: unreachable pattern 127 --> $DIR/consts-opaque.rs:57:9 128 | 129LL | Bar => {} 130 | --- matches any value 131... 132LL | _ => {} 133 | ^ unreachable pattern 134 135error: unreachable pattern 136 --> $DIR/consts-opaque.rs:64:9 137 | 138LL | BAR => {} 139 | --- matches any value 140LL | 141LL | Bar => {} // should not be emitting unreachable warning 142 | ^^^ unreachable pattern 143 144error: unreachable pattern 145 --> $DIR/consts-opaque.rs:66:9 146 | 147LL | BAR => {} 148 | --- matches any value 149... 150LL | _ => {} 151 | ^ unreachable pattern 152 153error: unreachable pattern 154 --> $DIR/consts-opaque.rs:73:9 155 | 156LL | BAR => {} 157 | --- matches any value 158LL | 159LL | BAR => {} // should not be emitting unreachable warning 160 | ^^^ unreachable pattern 161 162error: unreachable pattern 163 --> $DIR/consts-opaque.rs:76:9 164 | 165LL | BAR => {} 166 | --- matches any value 167... 168LL | _ => {} // should not be emitting unreachable warning 169 | ^ unreachable pattern 170 171error: unreachable pattern 172 --> $DIR/consts-opaque.rs:83:9 173 | 174LL | BAZ => {} 175 | --- matches any value 176LL | 177LL | Baz::Baz1 => {} // should not be emitting unreachable warning 178 | ^^^^^^^^^ unreachable pattern 179 180error: unreachable pattern 181 --> $DIR/consts-opaque.rs:85:9 182 | 183LL | BAZ => {} 184 | --- matches any value 185... 186LL | _ => {} 187 | ^ unreachable pattern 188 189error: unreachable pattern 190 --> $DIR/consts-opaque.rs:93:9 191 | 192LL | BAZ => {} 193 | --- matches any value 194LL | 195LL | _ => {} 196 | ^ unreachable pattern 197 198error: unreachable pattern 199 --> $DIR/consts-opaque.rs:100:9 200 | 201LL | BAZ => {} 202 | --- matches any value 203LL | 204LL | Baz::Baz2 => {} // should not be emitting unreachable warning 205 | ^^^^^^^^^ unreachable pattern 206 207error: unreachable pattern 208 --> $DIR/consts-opaque.rs:102:9 209 | 210LL | BAZ => {} 211 | --- matches any value 212... 213LL | _ => {} // should not be emitting unreachable warning 214 | ^ unreachable pattern 215 216error[E0004]: non-exhaustive patterns: `Wrap(_)` not covered 217 --> $DIR/consts-opaque.rs:135:11 218 | 219LL | match WRAPQUUX { 220 | ^^^^^^^^ pattern `Wrap(_)` not covered 221 | 222note: `Wrap<fn(usize, usize) -> usize>` defined here 223 --> $DIR/consts-opaque.rs:117:12 224 | 225LL | struct Wrap<T>(T); 226 | ^^^^ 227 = note: the matched value is of type `Wrap<fn(usize, usize) -> usize>` 228help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown 229 | 230LL ~ WRAPQUUX => {}, 231LL + Wrap(_) => todo!() 232 | 233 234error: aborting due to 23 previous errors; 1 warning emitted 235 236For more information about this error, try `rustc --explain E0004`.