summaryrefslogtreecommitdiffstats
path: root/tests/ui/stability-attribute/auxiliary/similar-unstable-method.rs
blob: 8804186ee1a6b915777f028ae86925e044c5b78b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#![feature(staged_api)]
#![stable(feature = "libfoo", since = "1.0.0")]

#[unstable(feature = "foo", reason = "...", issue = "none")]
pub fn foo() {}

#[stable(feature = "libfoo", since = "1.0.0")]
pub struct Foo;

impl Foo {
    #[unstable(feature = "foo", reason = "...", issue = "none")]
    pub fn foo(&self) {}
}