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

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

fn main() {
    let a;
    a = Foo::new(false);
}