//@ check-pass #![feature(adt_const_params)] // Regression test for #116308 pub trait Identity { type Identity; } impl Identity for T { type Identity = Self; } pub fn foo::Identity>() {} fn main() { foo::<12>(); }