☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
rust
/
compile
/
generics9.rs
☽
☼
gcc/testsuite/rust/compile/generics9.rs
code
plain
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
}