summaryrefslogtreecommitdiff
path: root/gcc/testsuite/rust/compile/torture/generics25.rs
blob: e7792e3efb31784ba5983d32eabd2b86a005a9a5 (plain)
1
2
3
4
5
6
7
8
9
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;
}