Debian Codegraph @

gcc/testsuite/rust/compile/derive_macro4.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 struct PhantomData<T>;
14
15 #[derive(Clone)] // { dg-error "bounds not satisfied for U .Copy. is not satisfied" }
16 union U {
17 i: i32,
18 f: f64,
19 }