blob: b48189fc2cba9210690ec0274ac89c4264c978e9 [file] [log] [blame]
// Check that different const types are different.
// revisions: full min
#![cfg_attr(full, feature(const_generics))]
#![cfg_attr(full, allow(incomplete_features))]
struct ConstUsize<const V: usize> {}
fn main() {
let mut u = ConstUsize::<3> {};
u = ConstUsize::<4> {};
//~^ ERROR mismatched types
}