]> git.lizzy.rs Git - rust.git/blob - tests/ui/issues/issue-57924.rs
Rollup merge of #107112 - eltociear:patch-19, r=albertlarsan68
[rust.git] / tests / ui / issues / issue-57924.rs
1 pub struct Gcm<E>(E);
2
3 impl<E> Gcm<E> {
4     pub fn crash(e: E) -> Self {
5         Self::<E>(e)
6         //~^ ERROR type arguments are not allowed on self constructor
7     }
8 }
9
10 fn main() {}