#![allow(incomplete_features)] #![feature(generic_const_exprs)] struct ConstAssert; trait True {} impl True for ConstAssert {} struct Range(T) //~^ ERROR the type of const parameters must not depend on other generic parameters //~| ERROR the type of const parameters must not depend on other generic parameters where ConstAssert<{ MIN <= MAX }>: True; fn main() {}