aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/rust/compile/issue-2951.rs
blob: d30a3bf2adf17f5bbff615f25af2f997a04705c5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#[lang = "sized"]
pub trait Sized {}

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

impl Clone for ! {
    fn clone(&self) -> Self {
        *self
    }
}