Debian Codegraph @

gcc/testsuite/rust/compile/generics9.rs

raw
1 struct Foo<A, B = (A, B)>(A, B);
2 // { dg-error "could not resolve type path .B." "" { target *-*-* } .-1 }
3
4 fn main() {
5 let a: Foo<bool>;
6 a = Foo::<bool>(true, (false, true));
7
8 let b: (bool, bool);
9 b = a.1;
10 }