mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-25 08:13:41 +00:00
6 lines
147 B
Rust
6 lines
147 B
Rust
// Checks that a const param cannot be stored in a struct.
|
|
|
|
struct S<const C: u8>(C); //~ ERROR expected type, found const parameter
|
|
|
|
fn main() {}
|