]> git.lizzy.rs Git - rust.git/blob - src/test/ui/const-generics/struct-with-invalid-const-param.rs
Rollup merge of #79399 - pickfire:patch-3, r=JohnTitor
[rust.git] / src / test / ui / const-generics / struct-with-invalid-const-param.rs
1 // Checks that a const param cannot be stored in a struct.
2 // revisions: full min
3
4 #![cfg_attr(full, feature(const_generics))]
5 #![cfg_attr(full, allow(incomplete_features))]
6
7 struct S<const C: u8>(C); //~ ERROR expected type, found const parameter
8
9 fn main() {}