]> git.lizzy.rs Git - rust.git/blob - tests/ui/const-generics/struct-with-invalid-const-param.rs
Auto merge of #106812 - oli-obk:output_filenames, r=petrochenkov
[rust.git] / tests / ui / const-generics / struct-with-invalid-const-param.rs
1 // Checks that a const param cannot be stored in a struct.
2
3 struct S<const C: u8>(C); //~ ERROR expected type, found const parameter
4
5 fn main() {}