| error[E0204]: the trait `ConstParamTy_` cannot be implemented for this type |
| --> $DIR/unsized_field-1.rs:9:8 |
| | |
| LL | #[derive(ConstParamTy, Eq, PartialEq)] |
| | ------------ in this derive macro expansion |
| LL | struct A([u8]); |
| | ^ ---- this field does not implement `ConstParamTy_` |
| | |
| note: the `ConstParamTy_` impl for `[u8]` requires that `feature(unsized_const_params) is enabled` |
| --> $DIR/unsized_field-1.rs:9:10 |
| | |
| LL | struct A([u8]); |
| | ^^^^ |
| |
| error[E0204]: the trait `ConstParamTy_` cannot be implemented for this type |
| --> $DIR/unsized_field-1.rs:13:8 |
| | |
| LL | #[derive(ConstParamTy, Eq, PartialEq)] |
| | ------------ in this derive macro expansion |
| LL | struct B(&'static [u8]); |
| | ^ ------------- this field does not implement `ConstParamTy_` |
| | |
| note: the `ConstParamTy_` impl for `&'static [u8]` requires that `feature(unsized_const_params) is enabled` |
| --> $DIR/unsized_field-1.rs:13:10 |
| | |
| LL | struct B(&'static [u8]); |
| | ^^^^^^^^^^^^^ |
| |
| error[E0204]: the trait `ConstParamTy_` cannot be implemented for this type |
| --> $DIR/unsized_field-1.rs:20:8 |
| | |
| LL | #[derive(std::marker::ConstParamTy, Eq, PartialEq)] |
| | ------------------------- in this derive macro expansion |
| LL | struct D(unsized_const_param::GenericNotUnsizedParam<&'static [u8]>); |
| | ^ ---------------------------------------------------------- this field does not implement `ConstParamTy_` |
| | |
| note: the `ConstParamTy_` impl for `GenericNotUnsizedParam<&'static [u8]>` requires that `feature(unsized_const_params) is enabled` |
| --> $DIR/unsized_field-1.rs:20:10 |
| | |
| LL | struct D(unsized_const_param::GenericNotUnsizedParam<&'static [u8]>); |
| | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| |
| error: aborting due to 3 previous errors |
| |
| For more information about this error, try `rustc --explain E0204`. |