Debian Codegraph @

gcc/testsuite/rust/compile/issue-2987.rs

raw
1 // { dg-options "-w" } Currently there are a lot of warnings produced from inside clone/copy
2 // builtins
3
4 #[lang = "copy"]
5 trait Copy {}
6
7 #[lang = "clone"]
8 trait Clone {
9 fn clone(&self) -> Self;
10 }
11
12 #[derive(Copy)]
13 #[derive(Clone)]
14 struct Empty;
15
16 #[derive(Copy,Clone)]
17 struct Empty2;