//@ check-pass // We previously always returned ambiguity when equating generic consts, even if they // only contain generic parameters. This is incorrect as trying to unify `N > 1` with `M > 1` // should fail. #![allow(incomplete_features)] #![feature(generic_const_exprs)] enum Assert {} trait IsTrue {} impl IsTrue for Assert {} struct Foo; trait Bar {} impl Bar for Foo where Assert<{ N > 1 }>: IsTrue, Assert<{ M > 1 }>: IsTrue, { } fn main() {}