about summary refs log tree commit diff
path: root/tests/ui/const-generics/issue-80471.stderr
blob: 8cf3d68e5d69107335b9970884bc6f7d91460d7a (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 struct
   |
LL - enum Nat {
LL + #[derive(ConstParamTy)]
   |

error: aborting due to 1 previous error

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