@@ -38,7 +38,7 @@ LL | BAR => {}
3838 = note: see https://doc.rust-lang.org/stable/std/marker/trait.StructuralEq.html for details
3939
4040error: to use a constant of type `Bar` in a pattern, `Bar` must be annotated with `#[derive(PartialEq, Eq)]`
41- --> $DIR/consts-opaque.rs:59 :9
41+ --> $DIR/consts-opaque.rs:58 :9
4242 |
4343LL | BAR => {}
4444 | ^^^
@@ -47,7 +47,7 @@ LL | BAR => {}
4747 = note: see https://doc.rust-lang.org/stable/std/marker/trait.StructuralEq.html for details
4848
4949error: to use a constant of type `Bar` in a pattern, `Bar` must be annotated with `#[derive(PartialEq, Eq)]`
50- --> $DIR/consts-opaque.rs:67 :9
50+ --> $DIR/consts-opaque.rs:65 :9
5151 |
5252LL | BAR => {}
5353 | ^^^
@@ -56,7 +56,7 @@ LL | BAR => {}
5656 = note: see https://doc.rust-lang.org/stable/std/marker/trait.StructuralEq.html for details
5757
5858error: to use a constant of type `Bar` in a pattern, `Bar` must be annotated with `#[derive(PartialEq, Eq)]`
59- --> $DIR/consts-opaque.rs:69 :9
59+ --> $DIR/consts-opaque.rs:67 :9
6060 |
6161LL | BAR => {}
6262 | ^^^
@@ -65,7 +65,7 @@ LL | BAR => {}
6565 = note: see https://doc.rust-lang.org/stable/std/marker/trait.StructuralEq.html for details
6666
6767error: to use a constant of type `Baz` in a pattern, `Baz` must be annotated with `#[derive(PartialEq, Eq)]`
68- --> $DIR/consts-opaque.rs:75 :9
68+ --> $DIR/consts-opaque.rs:73 :9
6969 |
7070LL | BAZ => {}
7171 | ^^^
@@ -74,7 +74,7 @@ LL | BAZ => {}
7474 = note: see https://doc.rust-lang.org/stable/std/marker/trait.StructuralEq.html for details
7575
7676error: to use a constant of type `Baz` in a pattern, `Baz` must be annotated with `#[derive(PartialEq, Eq)]`
77- --> $DIR/consts-opaque.rs:83 :9
77+ --> $DIR/consts-opaque.rs:81 :9
7878 |
7979LL | BAZ => {}
8080 | ^^^
@@ -83,45 +83,22 @@ LL | BAZ => {}
8383 = note: see https://doc.rust-lang.org/stable/std/marker/trait.StructuralEq.html for details
8484
8585error: to use a constant of type `Baz` in a pattern, `Baz` must be annotated with `#[derive(PartialEq, Eq)]`
86- --> $DIR/consts-opaque.rs:89 :9
86+ --> $DIR/consts-opaque.rs:87 :9
8787 |
8888LL | BAZ => {}
8989 | ^^^
9090 |
9191 = note: the traits must be derived, manual `impl`s are not sufficient
9292 = note: see https://doc.rust-lang.org/stable/std/marker/trait.StructuralEq.html for details
9393
94- error: unreachable pattern
95- --> $DIR/consts-opaque.rs:54:9
96- |
97- LL | Bar => {}
98- | --- matches any value
99- ...
100- LL | _ => {}
101- | ^ unreachable pattern
102- |
103- note: the lint level is defined here
104- --> $DIR/consts-opaque.rs:6:9
105- |
106- LL | #![deny(unreachable_patterns)]
107- | ^^^^^^^^^^^^^^^^^^^^
108-
109- error: unreachable pattern
110- --> $DIR/consts-opaque.rs:62:9
111- |
112- LL | Bar => {}
113- | --- matches any value
114- LL | _ => {}
115- | ^ unreachable pattern
116-
11794error[E0004]: non-exhaustive patterns: `Wrap(_)` not covered
118- --> $DIR/consts-opaque.rs:124 :11
95+ --> $DIR/consts-opaque.rs:122 :11
11996 |
12097LL | match WRAPQUUX {
12198 | ^^^^^^^^ pattern `Wrap(_)` not covered
12299 |
123100note: `Wrap<fn(usize, usize) -> usize>` defined here
124- --> $DIR/consts-opaque.rs:106 :12
101+ --> $DIR/consts-opaque.rs:104 :12
125102 |
126103LL | struct Wrap<T>(T);
127104 | ^^^^
@@ -132,6 +109,6 @@ LL ~ WRAPQUUX => {},
132109LL + Wrap(_) => todo!()
133110 |
134111
135- error: aborting due to 12 previous errors; 1 warning emitted
112+ error: aborting due to 10 previous errors; 1 warning emitted
136113
137114For more information about this error, try `rustc --explain E0004`.
0 commit comments