aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/rust/compile/generics9.rs
blob: 3766703431eca114b84bac2a8e5e80123202fdbb (plain)
1
2
3
4
5
6
7
8
9
10
struct Foo<A, B = (A, B)>(A, B);
// { dg-error "failed to resolve TypePath: B" "" { target *-*-* } .-1 }

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

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