#![feature(generic_const_exprs)] #![expect(incomplete_features)] trait Trait { fn fnc(&self) {} //~ERROR defaults for generic parameters are not allowed here //~^ ERROR: mismatched types fn foo() }>(&self) {} //~ERROR defaults for generic parameters are not allowed here } fn main() {}