Debian Codegraph @

gcc/testsuite/rust/compile/derive_macro6.rs

raw
1 #[lang = "sized"]
2 pub trait Sized {}
3
4 #[lang = "copy"]
5 pub trait Copy {}
6
7 #[lang = "clone"]
8 pub trait Clone {
9 fn clone(&self) -> Self;
10 }
11
12 #[lang = "phantom_data"]
13 pub struct PhantomData<T>;
14
15 impl Copy for i32 {}
16 impl Copy for i64 {}
17 impl Copy for U {}
18
19 #[derive(Clone)]
20 union U {
21 i: i32,
22 f: f64,
23 }