#![feature(adt_const_params)] trait Trait { fn foo() {} //~^ ERROR the type of const parameters must not depend on other generic parameters } fn main() {}