1 error[E0573]: expected type, found const parameter `C`
2 --> $DIR/struct-with-invalid-const-param.rs:4:23
4 LL | struct S<const C: u8>(C);
7 warning: the feature `const_generics` is incomplete and may not be safe to use and/or cause compiler crashes
8 --> $DIR/struct-with-invalid-const-param.rs:1:12
10 LL | #![feature(const_generics)]
13 = note: `#[warn(incomplete_features)]` on by default
14 = note: see issue #44580 <https://github.com/rust-lang/rust/issues/44580> for more information
16 error: aborting due to previous error; 1 warning emitted
18 For more information about this error, try `rustc --explain E0573`.