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/issue-80471.rs:1: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]: `Nat` must implement `ConstParamTy` to be used as the type of a const generic parameter 11 --> $DIR/issue-80471.rs:10:17 12 | 13LL | fn foo<const N: Nat>() {} 14 | ^^^ 15 | 16help: add `#[derive(ConstParamTy)]` to the struct 17 | 18LL + #[derive(ConstParamTy)] 19LL | enum Nat { 20 | 21 22error: aborting due to previous error; 1 warning emitted 23 24For more information about this error, try `rustc --explain E0741`.