// compile-flags: -Zsave-analysis #![feature(generic_const_exprs)] #![allow(incomplete_features)] struct Arr where Assert::<{N < usize::MAX / 2}>: IsTrue, {} enum Assert {} trait IsTrue {} impl IsTrue for Assert {} fn main() { let x: Arr<{usize::MAX}> = Arr {}; //~^ ERROR mismatched types //~| ERROR mismatched types }