aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/rust/compile/issue-2987.rs
blob: 1ab5fdc3647b53dbb04282fb486af376aeb5e866 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// { dg-options "-w" } Currently there are a lot of warnings produced from inside clone/copy
// builtins

#[lang = "copy"]
trait Copy {}

#[lang = "clone"]
trait Clone {
    fn clone(&self) -> Self;
}

#[derive(Copy)]
#[derive(Clone)]
struct Empty;

#[derive(Copy,Clone)]
struct Empty2;