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);
5 | ----------------------^--
7 | | help: a struct with a similar name exists: `S`
8 | similarly named struct `S` defined here
10 warning: the feature `const_generics` is incomplete and may not be safe to use and/or cause compiler crashes
11 --> $DIR/struct-with-invalid-const-param.rs:1:12
13 LL | #![feature(const_generics)]
16 = note: `#[warn(incomplete_features)]` on by default
17 = note: see issue #44580 <https://github.com/rust-lang/rust/issues/44580> for more information
19 error: aborting due to previous error; 1 warning emitted
21 For more information about this error, try `rustc --explain E0573`.