rust/src/test/ui/const-generics/struct-with-invalid-const-param.rs
kadmin be650a7ecd Add a bunch of revisions
This adds a bunch of revisions to const-generic tests
2020-08-12 08:30:17 +00:00

10 lines
309 B
Rust

// Checks that a const param cannot be stored in a struct.
// revisions: full min
#![cfg_attr(full, feature(const_generics))]
#![cfg_attr(full, allow(incomplete_features))]
#![cfg_attr(min, feature(min_const_generics))]
struct S<const C: u8>(C); //~ ERROR expected type, found const parameter
fn main() {}