summaryrefslogtreecommitdiff
path: root/gcc/testsuite/rust/compile/torture/generics20.rs
blob: 8fe1cffdf7dadd8b3628e8a6e53308ae92dacd35 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
struct Foo<A, B>(A, B);

impl<T> Foo<T, T> {
    fn new(a: T, b: T) -> Self {
        Self(a, b)
    }
}

fn main() {
    let a;
    a = Foo::new(123, 456);
}