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

struct Foo<A, B = (A, A)>(A, B);

fn main() {
    let a: Foo<bool>;
    a = Foo::<bool>(true, (false, true));

    let b: (bool, bool);
    b = a.1;
}