1 2 3 4 5 6 7 8 9 10
pub struct Gcm<E>(E); impl<E> Gcm<E> { pub fn crash(e: E) -> Self { Self::<E>(e) //~^ ERROR type arguments are not allowed on self constructor } } fn main() {}