summaryrefslogtreecommitdiffstats
path: root/src/test/rustdoc/auxiliary/unstable-trait.rs
blob: 6f06a6e2656d7b2077af1190619a07acb939a647 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#![feature(staged_api)]
#![stable(feature = "private_general", since = "1.0.0")]

#[unstable(feature = "private_trait", issue = "none")]
pub trait Bar {}

#[stable(feature = "private_general", since = "1.0.0")]
pub struct Foo {
    // nothing
}

impl Foo {
    #[stable(feature = "private_general", since = "1.0.0")]
    pub fn stable_impl() {}
}

impl Foo {
    #[unstable(feature = "private_trait", issue = "none")]
    pub fn bar() {}

    #[stable(feature = "private_general", since = "1.0.0")]
    pub fn bar2() {}
}

#[stable(feature = "private_general", since = "1.0.0")]
impl Bar for Foo {}