Debian Codegraph @

gcc/testsuite/rust/compile/torture/generics25.rs

raw
1 #[lang = "sized"]
2 pub trait Sized {}
3
4 struct Foo<A, B = (A, A)>(A, B);
5
6 fn main() {
7 let a: Foo<bool>;
8 a = Foo::<bool>(true, (false, true));
9
10 let b: (bool, bool);
11 b = a.1;
12 }