@@ -118,14 +118,14 @@ LL | impl PartialEq for NoDerive { fn eq(&self, _: &Self) -> bool { false } }
118118 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
119119
120120error: 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
122122 |
123123LL | struct NoDerive;
124124 | --------------- `NoDerive` must be annotated with `#[derive(PartialEq)]` to be usable in patterns
125125...
126126LL | trait Trait: Sized { const ASSOC: Option<Self>; }
127127 | ------------------ ------------------------- constant defined here
128- ...
128+ LL | impl Trait for NoDerive { const ASSOC: Option<NoDerive> = Some(NoDerive); }
129129LL | match Some(NoDerive) { NoDerive::ASSOC => dbg!(NoDerive::ASSOC), _ => panic!("whoops"), };
130130 | ^^^^^^^^^^^^^^^ constant of non-structural type
131131 |
@@ -136,7 +136,7 @@ LL | impl PartialEq for NoDerive { fn eq(&self, _: &Self) -> bool { false } }
136136 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
137137
138138error: 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
140140 |
141141LL | struct NoDerive;
142142 | --------------- `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 } }
153153 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
154154
155155error: 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
157157 |
158158LL | struct NoDerive;
159159 | --------------- `NoDerive` must be annotated with `#[derive(PartialEq)]` to be usable in patterns
0 commit comments