diff options
author | bors <bors@rust-lang.org> | 2023-05-17 06:42:07 +0000 |
---|---|---|
committer | bors <bors@rust-lang.org> | 2023-05-17 06:42:07 +0000 |
commit | c2ccc855e74aec03e434405eca3c247ee2432e53 (patch) | |
tree | 123b2319d3e649afa4438cc57830d30f5c87db1d /tests/ui/const-generics/adt_const_params/const_param_ty_impl_bad_field.stderr | |
parent | 6c64870fa67f0227f40f6adc25a6944e95c2959f (diff) | |
parent | 072074383627a6e5eb43c72522ae09010eb218c0 (diff) | |
download | rust-c2ccc855e74aec03e434405eca3c247ee2432e53.tar.gz |
Auto merge of #111671 - Dylan-DPC:rollup-1jy5r16, r=Dylan-DPC
Rollup of 6 pull requests
Successful merges:
- #110145 (Share slice of bytes)
- #111043 (Stabilize feature `cstr_is_empty`)
- #111648 (Remove `LangItems::require`)
- #111649 (Add derive for `core::marker::ConstParamTy`)
- #111654 (Add a conversion from `&mut T` to `&mut UnsafeCell<T>`)
- #111661 (Erase regions of type in `offset_of!`)
Failed merges:
r? `@ghost`
`@rustbot` modify labels: rollup
Diffstat (limited to 'tests/ui/const-generics/adt_const_params/const_param_ty_impl_bad_field.stderr')
-rw-r--r-- | tests/ui/const-generics/adt_const_params/const_param_ty_impl_bad_field.stderr | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/tests/ui/const-generics/adt_const_params/const_param_ty_impl_bad_field.stderr b/tests/ui/const-generics/adt_const_params/const_param_ty_impl_bad_field.stderr index c8e065848b1..52b65d6061a 100644 --- a/tests/ui/const-generics/adt_const_params/const_param_ty_impl_bad_field.stderr +++ b/tests/ui/const-generics/adt_const_params/const_param_ty_impl_bad_field.stderr @@ -7,6 +7,17 @@ LL | LL | impl std::marker::ConstParamTy for CantParam {} | ^^^^^^^^^ -error: aborting due to previous error +error[E0204]: the trait `ConstParamTy` cannot be implemented for this type + --> $DIR/const_param_ty_impl_bad_field.rs:13:10 + | +LL | #[derive(std::marker::ConstParamTy, Eq, PartialEq)] + | ^^^^^^^^^^^^^^^^^^^^^^^^^ +LL | +LL | struct CantParamDerive(NotParam); + | -------- this field does not implement `ConstParamTy` + | + = 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 E0204`. |