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

#[stable(feature = "rust1", since = "1.0.0")]
pub trait Default: Sized {
    #[stable(feature = "rust1", since = "1.0.0")]
    fn default() -> Self;
}

impl Default for () {
    fn default() -> () {
        ()
    }
}