You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
note: the `PartialEq` trait must be derived, manual `impl`s are not sufficient; see https://doc.rust-lang.org/stable/std/marker/trait.StructuralPartialEq.html for details
LL + match Derive::Some(NoDerive) { binding if binding == ENUM => dbg!(ENUM), _ => panic!("whoops"), };
21
16
|
22
17
23
18
error: constant of non-structural type `NoDerive` in a pattern
24
-
--> $DIR/reject_non_structural.rs:65:28
19
+
--> $DIR/reject_non_structural.rs:64:28
25
20
|
26
21
LL | struct NoDerive;
27
22
| --------------- `NoDerive` must be annotated with `#[derive(PartialEq)]` to be usable in patterns
@@ -32,7 +27,7 @@ LL | match Some(NoDerive) { FIELD => dbg!(FIELD), _ => panic!("whoops"), };
32
27
| ^^^^^ constant of non-structural type
33
28
|
34
29
note: the `PartialEq` trait must be derived, manual `impl`s are not sufficient; see https://doc.rust-lang.org/stable/std/marker/trait.StructuralPartialEq.html for details
note: the `PartialEq` trait must be derived, manual `impl`s are not sufficient; see https://doc.rust-lang.org/stable/std/marker/trait.StructuralPartialEq.html for details
note: the `PartialEq` trait must be derived, manual `impl`s are not sufficient; see https://doc.rust-lang.org/stable/std/marker/trait.StructuralPartialEq.html for details
@@ -87,7 +82,7 @@ LL + match (None, Some(NoDerive)) { binding if binding == TUPLE => dbg!(TUPL
87
82
|
88
83
89
84
error: constant of non-structural type `NoDerive` in a pattern
90
-
--> $DIR/reject_non_structural.rs:81:28
85
+
--> $DIR/reject_non_structural.rs:80:28
91
86
|
92
87
LL | struct NoDerive;
93
88
| --------------- `NoDerive` must be annotated with `#[derive(PartialEq)]` to be usable in patterns
@@ -98,7 +93,7 @@ LL | match Some(NoDerive) { TYPE_ASCRIPTION => dbg!(TYPE_ASCRIPTION), _ => p
98
93
| ^^^^^^^^^^^^^^^ constant of non-structural type
99
94
|
100
95
note: the `PartialEq` trait must be derived, manual `impl`s are not sufficient; see https://doc.rust-lang.org/stable/std/marker/trait.StructuralPartialEq.html for details
note: the `PartialEq` trait must be derived, manual `impl`s are not sufficient; see https://doc.rust-lang.org/stable/std/marker/trait.StructuralPartialEq.html for details
note: the `PartialEq` trait must be derived, manual `impl`s are not sufficient; see https://doc.rust-lang.org/stable/std/marker/trait.StructuralPartialEq.html for details
@@ -153,7 +148,7 @@ LL + match [Some(NoDerive); 2] { binding if binding == REPEAT => dbg!(REPEAT
153
148
|
154
149
155
150
error: constant of non-structural type `NoDerive` in a pattern
156
-
--> $DIR/reject_non_structural.rs:97:28
151
+
--> $DIR/reject_non_structural.rs:96:28
157
152
|
158
153
LL | struct NoDerive;
159
154
| --------------- `NoDerive` must be annotated with `#[derive(PartialEq)]` to be usable in patterns
@@ -165,7 +160,7 @@ LL | match Some(NoDerive) { NoDerive::ASSOC => dbg!(NoDerive::ASSOC), _ => p
165
160
| ^^^^^^^^^^^^^^^ constant of non-structural type
166
161
|
167
162
note: the `PartialEq` trait must be derived, manual `impl`s are not sufficient; see https://doc.rust-lang.org/stable/std/marker/trait.StructuralPartialEq.html for details
note: the `PartialEq` trait must be derived, manual `impl`s are not sufficient; see https://doc.rust-lang.org/stable/std/marker/trait.StructuralPartialEq.html for details
note: the `PartialEq` trait must be derived, manual `impl`s are not sufficient; see https://doc.rust-lang.org/stable/std/marker/trait.StructuralPartialEq.html for details
0 commit comments