fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1warning: the feature `adt_const_params` is incomplete and may not be safe to use and/or cause compiler crashes 2 --> $DIR/refs_check_const_eq-issue-88384.rs:2:12 3 | 4LL | #![feature(adt_const_params)] 5 | ^^^^^^^^^^^^^^^^ 6 | 7 = note: see issue #95174 <https://github.com/rust-lang/rust/issues/95174> for more information 8 = note: `#[warn(incomplete_features)]` on by default 9 10error[E0741]: `CompileTimeSettings` must implement `ConstParamTy` to be used as the type of a const generic parameter 11 --> $DIR/refs_check_const_eq-issue-88384.rs:10:21 12 | 13LL | struct Foo<const T: CompileTimeSettings>; 14 | ^^^^^^^^^^^^^^^^^^^ 15 | 16help: add `#[derive(ConstParamTy)]` to the struct 17 | 18LL + #[derive(ConstParamTy)] 19LL | struct CompileTimeSettings{ 20 | 21 22error[E0741]: `CompileTimeSettings` must implement `ConstParamTy` to be used as the type of a const generic parameter 23 --> $DIR/refs_check_const_eq-issue-88384.rs:13:15 24 | 25LL | impl<const T: CompileTimeSettings> Foo<T> { 26 | ^^^^^^^^^^^^^^^^^^^ 27 | 28help: add `#[derive(ConstParamTy)]` to the struct 29 | 30LL + #[derive(ConstParamTy)] 31LL | struct CompileTimeSettings{ 32 | 33 34error: aborting due to 2 previous errors; 1 warning emitted 35 36For more information about this error, try `rustc --explain E0741`.