1 warning: the feature `const_generics` is incomplete and may cause the compiler to crash
2 --> $DIR/struct-with-invalid-const-param.rs:1:12
4 LL | #![feature(const_generics)]
7 error[E0573]: expected type, found const parameter `C`
8 --> $DIR/struct-with-invalid-const-param.rs:4:23
10 LL | struct S<const C: u8>(C);
11 | ^ help: a struct with a similar name exists: `S`
13 error: aborting due to previous error
15 For more information about this error, try `rustc --explain E0573`.