2023-05-17 04:05:46 +00:00
|
|
|
error[E0741]: `Nat` must implement `ConstParamTy` to be used as the type of a const generic parameter
|
2024-07-14 13:38:51 +01:00
|
|
|
--> $DIR/issue-80471.rs:9:17
|
2022-07-07 11:33:56 +09:00
|
|
|
|
|
|
|
|
LL | fn foo<const N: Nat>() {}
|
|
|
|
| ^^^
|
2023-05-17 04:05:46 +00:00
|
|
|
|
|
|
|
|
help: add `#[derive(ConstParamTy)]` to the struct
|
|
|
|
|
|
|
|
|
LL + #[derive(ConstParamTy)]
|
|
|
|
LL | enum Nat {
|
|
|
|
|
|
2022-07-07 11:33:56 +09:00
|
|
|
|
2024-07-14 13:38:51 +01:00
|
|
|
error: aborting due to 1 previous error
|
2022-07-07 11:33:56 +09:00
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0741`.
|