@@ -38,7 +38,7 @@ LL | BAR => {}
38
38
= note: see https://doc.rust-lang.org/stable/std/marker/trait.StructuralEq.html for details
39
39
40
40
error: 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
42
42
|
43
43
LL | BAR => {}
44
44
| ^^^
@@ -47,7 +47,7 @@ LL | BAR => {}
47
47
= note: see https://doc.rust-lang.org/stable/std/marker/trait.StructuralEq.html for details
48
48
49
49
error: 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
51
51
|
52
52
LL | BAR => {}
53
53
| ^^^
@@ -56,7 +56,7 @@ LL | BAR => {}
56
56
= note: see https://doc.rust-lang.org/stable/std/marker/trait.StructuralEq.html for details
57
57
58
58
error: 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
60
60
|
61
61
LL | BAR => {}
62
62
| ^^^
@@ -65,7 +65,7 @@ LL | BAR => {}
65
65
= note: see https://doc.rust-lang.org/stable/std/marker/trait.StructuralEq.html for details
66
66
67
67
error: 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
69
69
|
70
70
LL | BAZ => {}
71
71
| ^^^
@@ -74,7 +74,7 @@ LL | BAZ => {}
74
74
= note: see https://doc.rust-lang.org/stable/std/marker/trait.StructuralEq.html for details
75
75
76
76
error: 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
78
78
|
79
79
LL | BAZ => {}
80
80
| ^^^
@@ -83,45 +83,22 @@ LL | BAZ => {}
83
83
= note: see https://doc.rust-lang.org/stable/std/marker/trait.StructuralEq.html for details
84
84
85
85
error: 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
87
87
|
88
88
LL | BAZ => {}
89
89
| ^^^
90
90
|
91
91
= note: the traits must be derived, manual `impl`s are not sufficient
92
92
= note: see https://doc.rust-lang.org/stable/std/marker/trait.StructuralEq.html for details
93
93
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
-
117
94
error[E0004]: non-exhaustive patterns: `Wrap(_)` not covered
118
- --> $DIR/consts-opaque.rs:124 :11
95
+ --> $DIR/consts-opaque.rs:122 :11
119
96
|
120
97
LL | match WRAPQUUX {
121
98
| ^^^^^^^^ pattern `Wrap(_)` not covered
122
99
|
123
100
note: `Wrap<fn(usize, usize) -> usize>` defined here
124
- --> $DIR/consts-opaque.rs:106 :12
101
+ --> $DIR/consts-opaque.rs:104 :12
125
102
|
126
103
LL | struct Wrap<T>(T);
127
104
| ^^^^
@@ -132,6 +109,6 @@ LL ~ WRAPQUUX => {},
132
109
LL + Wrap(_) => todo!()
133
110
|
134
111
135
- error: aborting due to 12 previous errors; 1 warning emitted
112
+ error: aborting due to 10 previous errors; 1 warning emitted
136
113
137
114
For more information about this error, try `rustc --explain E0004`.
0 commit comments