diff options
author | Nilstrieb <48135649+Nilstrieb@users.noreply.github.com> | 2023-05-16 19:40:02 +0200 |
---|---|---|
committer | Nilstrieb <48135649+Nilstrieb@users.noreply.github.com> | 2023-05-16 20:09:25 +0200 |
commit | 0336dd132b50af57389aa222793aff3c38b88daf (patch) | |
tree | 4f01af97cfcd8d8e402c7bdcce5c3bcf2a94b13c /tests/ui/const-generics/adt_const_params/const_param_ty_impl_no_structural_eq.stderr | |
parent | cba14074bb4cc12bfe918eabd0d52a3999b2a461 (diff) | |
download | rust-0336dd132b50af57389aa222793aff3c38b88daf.tar.gz |
Add derive for `core::marker::ConstParamTy`
This makes it easier to implement it for a type, just like `Copy`.
Diffstat (limited to 'tests/ui/const-generics/adt_const_params/const_param_ty_impl_no_structural_eq.stderr')
-rw-r--r-- | tests/ui/const-generics/adt_const_params/const_param_ty_impl_no_structural_eq.stderr | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/tests/ui/const-generics/adt_const_params/const_param_ty_impl_no_structural_eq.stderr b/tests/ui/const-generics/adt_const_params/const_param_ty_impl_no_structural_eq.stderr index ca5abf5e254..52701d55914 100644 --- a/tests/ui/const-generics/adt_const_params/const_param_ty_impl_no_structural_eq.stderr +++ b/tests/ui/const-generics/adt_const_params/const_param_ty_impl_no_structural_eq.stderr @@ -7,6 +7,16 @@ LL | impl std::marker::ConstParamTy for CantParam {} note: required by a bound in `ConstParamTy` --> $SRC_DIR/core/src/marker.rs:LL:COL -error: aborting due to previous error +error[E0277]: the type `CantParamDerive` does not `#[derive(Eq)]` + --> $DIR/const_param_ty_impl_no_structural_eq.rs:13:10 + | +LL | #[derive(std::marker::ConstParamTy)] + | ^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `StructuralEq` is not implemented for `CantParamDerive` + | +note: required by a bound in `ConstParamTy` + --> $SRC_DIR/core/src/marker.rs:LL:COL + = note: this error originates in the derive macro `std::marker::ConstParamTy` (in Nightly builds, run with -Z macro-backtrace for more info) + +error: aborting due to 2 previous errors For more information about this error, try `rustc --explain E0277`. |