about summary refs log tree commit diff
path: root/tests/ui/const-generics/issue-80471.stderr
blob: fff2eb53cf126da2e85a9dc67b8ca290adb4f987 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
error[E0741]: `Nat` must implement `ConstParamTy` to be used as the type of a const generic parameter
  --> $DIR/issue-80471.rs:9:17
   |
LL | fn foo<const N: Nat>() {}
   |                 ^^^
   |
help: add `#[derive(ConstParamTy)]` to the enum
   |
LL + #[derive(ConstParamTy)]
LL | enum Nat {
   |

error: aborting due to 1 previous error

For more information about this error, try `rustc --explain E0741`.