#![feature(const_generics)] //~^ WARN the feature `const_generics` is incomplete and may cause the compiler to crash struct Const {} fn main() { let mut x = Const::<{ [3] }> {}; x = Const::<{ [4] }> {}; //~^ ERROR mismatched types }