summaryrefslogtreecommitdiffstats
path: root/tests/ui/issues/issue-57924.rs
blob: 8846912a8ff79bb11d6daeda27101d845d4f61cd (plain)
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() {}