]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-57924.rs
Rollup merge of #101175 - tmandry:curse-push-hook, r=jyn514
[rust.git] / src / test / 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() {}