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+
115error[E0277]: the type `CantParam` does not `#[derive(PartialEq)]`
216 --> $DIR/const_param_ty_impl_no_structural_eq.rs:10:36
317 |
@@ -16,8 +30,23 @@ LL | impl std::marker::ConstParamTy for CantParam {}
1630note: required by a bound in `ConstParamTy`
1731 --> $SRC_DIR/core/src/marker.rs:LL:COL
1832
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+
1948error[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
2150 |
2251LL | #[derive(std::marker::ConstParamTy)]
2352 | ^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `StructuralPartialEq` is not implemented for `CantParamDerive`
@@ -27,7 +56,7 @@ note: required by a bound in `ConstParamTy`
2756 = note: this error originates in the derive macro `std::marker::ConstParamTy` (in Nightly builds, run with -Z macro-backtrace for more info)
2857
2958error[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
3160 |
3261LL | #[derive(std::marker::ConstParamTy)]
3362 | ^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `StructuralEq` is not implemented for `CantParamDerive`
@@ -36,6 +65,6 @@ note: required by a bound in `ConstParamTy`
3665 --> $SRC_DIR/core/src/marker.rs:LL:COL
3766 = note: this error originates in the derive macro `std::marker::ConstParamTy` (in Nightly builds, run with -Z macro-backtrace for more info)
3867
39- error: aborting due to 4 previous errors
68+ error: aborting due to 6 previous errors
4069
4170For more information about this error, try `rustc --explain E0277`.
0 commit comments