rust/tests/ui/stability-attribute/auxiliary/similar-unstable-method.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

14 lines
318 B
Rust
Raw Normal View History

#![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) {}
}