1
+ error[E0277]: the trait bound `CantParam: Eq` is not satisfied
2
+ --> $DIR/const_param_ty_impl_no_structural_eq.rs:10:36
3
+ |
4
+ LL | impl std::marker::ConstParamTy for CantParam {}
5
+ | ^^^^^^^^^ the trait `Eq` is not implemented for `CantParam`
6
+ |
7
+ note: required by a bound in `ConstParamTy`
8
+ --> $SRC_DIR/core/src/marker.rs:LL:COL
9
+ help: consider annotating `CantParam` with `#[derive(Eq)]`
10
+ |
11
+ LL + #[derive(Eq)]
12
+ LL | struct CantParam(ImplementsConstParamTy);
13
+ |
14
+
1
15
error[E0277]: the type `CantParam` does not `#[derive(PartialEq)]`
2
16
--> $DIR/const_param_ty_impl_no_structural_eq.rs:10:36
3
17
|
@@ -16,8 +30,23 @@ LL | impl std::marker::ConstParamTy for CantParam {}
16
30
note: required by a bound in `ConstParamTy`
17
31
--> $SRC_DIR/core/src/marker.rs:LL:COL
18
32
33
+ error[E0277]: the trait bound `CantParamDerive: Eq` is not satisfied
34
+ --> $DIR/const_param_ty_impl_no_structural_eq.rs:15:10
35
+ |
36
+ LL | #[derive(std::marker::ConstParamTy)]
37
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Eq` is not implemented for `CantParamDerive`
38
+ |
39
+ note: required by a bound in `ConstParamTy`
40
+ --> $SRC_DIR/core/src/marker.rs:LL:COL
41
+ = note: this error originates in the derive macro `std::marker::ConstParamTy` (in Nightly builds, run with -Z macro-backtrace for more info)
42
+ help: consider annotating `CantParamDerive` with `#[derive(Eq)]`
43
+ |
44
+ LL + #[derive(Eq)]
45
+ LL | struct CantParamDerive(ImplementsConstParamTy);
46
+ |
47
+
19
48
error[E0277]: the type `CantParamDerive` does not `#[derive(PartialEq)]`
20
- --> $DIR/const_param_ty_impl_no_structural_eq.rs:14 :10
49
+ --> $DIR/const_param_ty_impl_no_structural_eq.rs:15 :10
21
50
|
22
51
LL | #[derive(std::marker::ConstParamTy)]
23
52
| ^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `StructuralPartialEq` is not implemented for `CantParamDerive`
@@ -27,7 +56,7 @@ note: required by a bound in `ConstParamTy`
27
56
= note: this error originates in the derive macro `std::marker::ConstParamTy` (in Nightly builds, run with -Z macro-backtrace for more info)
28
57
29
58
error[E0277]: the type `CantParamDerive` does not `#[derive(Eq)]`
30
- --> $DIR/const_param_ty_impl_no_structural_eq.rs:14 :10
59
+ --> $DIR/const_param_ty_impl_no_structural_eq.rs:15 :10
31
60
|
32
61
LL | #[derive(std::marker::ConstParamTy)]
33
62
| ^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `StructuralEq` is not implemented for `CantParamDerive`
@@ -36,6 +65,6 @@ note: required by a bound in `ConstParamTy`
36
65
--> $SRC_DIR/core/src/marker.rs:LL:COL
37
66
= note: this error originates in the derive macro `std::marker::ConstParamTy` (in Nightly builds, run with -Z macro-backtrace for more info)
38
67
39
- error: aborting due to 4 previous errors
68
+ error: aborting due to 6 previous errors
40
69
41
70
For more information about this error, try `rustc --explain E0277`.
0 commit comments