summaryrefslogtreecommitdiffstats
path: root/tests/ui/const-generics/struct-with-invalid-const-param.rs
blob: be1c4b0e8e80e61cebe6a8b2c1ed5fdefeab05d5 (plain)
1
2
3
4
5
// 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() {}