rust/tests/ui/const-generics/struct-with-invalid-const-p...

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

6 lines
147 B
Rust
Raw Normal View History

// 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() {}