2021-09-21 08:07:28 -05:00
|
|
|
warning: the feature `adt_const_params` is incomplete and may not be safe to use and/or cause compiler crashes
|
2022-07-23 15:09:52 -05:00
|
|
|
--> $DIR/refs_check_const_eq-issue-88384.rs:2:12
|
2021-09-21 08:07:28 -05:00
|
|
|
|
|
|
|
|
LL | #![feature(adt_const_params)]
|
|
|
|
| ^^^^^^^^^^^^^^^^
|
|
|
|
|
|
2022-03-21 10:33:15 -05:00
|
|
|
= note: see issue #95174 <https://github.com/rust-lang/rust/issues/95174> for more information
|
2022-09-18 10:55:36 -05:00
|
|
|
= note: `#[warn(incomplete_features)]` on by default
|
2021-09-21 08:07:28 -05:00
|
|
|
|
2023-05-16 23:05:46 -05:00
|
|
|
error[E0741]: `CompileTimeSettings` must implement `ConstParamTy` to be used as the type of a const generic parameter
|
2022-07-23 15:09:52 -05:00
|
|
|
--> $DIR/refs_check_const_eq-issue-88384.rs:10:21
|
|
|
|
|
|
|
|
|
LL | struct Foo<const T: CompileTimeSettings>;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^
|
2023-05-16 23:05:46 -05:00
|
|
|
|
|
|
|
|
help: add `#[derive(ConstParamTy)]` to the struct
|
|
|
|
|
|
|
|
|
LL + #[derive(ConstParamTy)]
|
|
|
|
LL | struct CompileTimeSettings{
|
|
|
|
|
|
2022-07-23 15:09:52 -05:00
|
|
|
|
2023-05-16 23:05:46 -05:00
|
|
|
error[E0741]: `CompileTimeSettings` must implement `ConstParamTy` to be used as the type of a const generic parameter
|
2022-07-23 15:09:52 -05:00
|
|
|
--> $DIR/refs_check_const_eq-issue-88384.rs:13:15
|
|
|
|
|
|
|
|
|
LL | impl<const T: CompileTimeSettings> Foo<T> {
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^
|
2023-05-16 23:05:46 -05:00
|
|
|
|
|
|
|
|
help: add `#[derive(ConstParamTy)]` to the struct
|
|
|
|
|
|
|
|
|
LL + #[derive(ConstParamTy)]
|
|
|
|
LL | struct CompileTimeSettings{
|
|
|
|
|
|
2022-07-23 15:09:52 -05:00
|
|
|
|
|
|
|
error: aborting due to 2 previous errors; 1 warning emitted
|
2021-09-21 08:07:28 -05:00
|
|
|
|
2022-07-23 15:09:52 -05:00
|
|
|
For more information about this error, try `rustc --explain E0741`.
|