summaryrefslogtreecommitdiffstats
path: root/tests/ui/const-generics/struct-with-invalid-const-param.stderr
blob: 67f497af50503020a002ab0b41c01de2b8674a67 (plain)
1
2
3
4
5
6
7
8
9
error[E0573]: expected type, found const parameter `C`
  --> $DIR/struct-with-invalid-const-param.rs:3:23
   |
LL | struct S<const C: u8>(C);
   |                       ^ not a type

error: aborting due to previous error

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