]> git.lizzy.rs Git - rust.git/blob - src/test/ui/const-generics/struct-with-invalid-const-param.rs
Rollup merge of #59432 - phansch:compiletest_docs, r=alexcrichton
[rust.git] / src / test / ui / const-generics / struct-with-invalid-const-param.rs
1 #![feature(const_generics)]
2 //~^ WARN the feature `const_generics` is incomplete and may cause the compiler to crash
3
4 struct S<const C: u8>(C); //~ ERROR expected type, found const parameter
5
6 fn main() {}