@@ -118,14 +118,14 @@ LL | impl PartialEq for NoDerive { fn eq(&self, _: &Self) -> bool { false } }
118
118
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
119
119
120
120
error: constant of non-structural type `NoDerive` in a pattern
121
- --> $DIR/reject_non_structural.rs:98 :28
121
+ --> $DIR/reject_non_structural.rs:97 :28
122
122
|
123
123
LL | struct NoDerive;
124
124
| --------------- `NoDerive` must be annotated with `#[derive(PartialEq)]` to be usable in patterns
125
125
...
126
126
LL | trait Trait: Sized { const ASSOC: Option<Self>; }
127
127
| ------------------ ------------------------- constant defined here
128
- ...
128
+ LL | impl Trait for NoDerive { const ASSOC: Option<NoDerive> = Some(NoDerive); }
129
129
LL | match Some(NoDerive) { NoDerive::ASSOC => dbg!(NoDerive::ASSOC), _ => panic!("whoops"), };
130
130
| ^^^^^^^^^^^^^^^ constant of non-structural type
131
131
|
@@ -136,7 +136,7 @@ LL | impl PartialEq for NoDerive { fn eq(&self, _: &Self) -> bool { false } }
136
136
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
137
137
138
138
error: constant of non-structural type `NoDerive` in a pattern
139
- --> $DIR/reject_non_structural.rs:103 :28
139
+ --> $DIR/reject_non_structural.rs:102 :28
140
140
|
141
141
LL | struct NoDerive;
142
142
| --------------- `NoDerive` must be annotated with `#[derive(PartialEq)]` to be usable in patterns
@@ -153,7 +153,7 @@ LL | impl PartialEq for NoDerive { fn eq(&self, _: &Self) -> bool { false } }
153
153
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
154
154
155
155
error: constant of non-structural type `NoDerive` in a pattern
156
- --> $DIR/reject_non_structural.rs:108 :29
156
+ --> $DIR/reject_non_structural.rs:107 :29
157
157
|
158
158
LL | struct NoDerive;
159
159
| --------------- `NoDerive` must be annotated with `#[derive(PartialEq)]` to be usable in patterns
0 commit comments