aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/rust/compile/torture/generics19.rs
blob: c98599fffdacb4618f79e046a9e069f1a895ba27 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#[lang = "sized"]
pub trait Sized {}

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);
}