Debian Codegraph @

gcc/testsuite/rust/compile/issue-2905-1.rs

raw
1 #![feature(lang_items)]
2
3 #[lang = "sized"]
4 trait Sized {}
5
6 pub struct A<T>(T);
7
8 pub trait B {
9 type C;
10 }
11
12 // ------
13 // swap these two items
14
15 impl B for i32 {
16 type C = Weird<i32>;
17 }
18
19 pub struct Weird<T>(A<(T,)>);
20
21 // ------
22
23 trait Foo {}
24
25 impl Foo for Weird<i32> {}
26
27 fn main() {}