mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 17:24:06 +00:00
18 lines
337 B
Rust
18 lines
337 B
Rust
#![feature(staged_api)]
|
|
#![deny(deprecated)]
|
|
|
|
#![unstable(feature = "unstable_test_feature", issue = "none")]
|
|
|
|
struct Foo;
|
|
|
|
impl Foo {
|
|
#[unstable(feature = "unstable_test_feature", issue = "none")]
|
|
#[deprecated(since = "1.0.0", note = "text")]
|
|
fn foo(self) {}
|
|
}
|
|
|
|
fn main() {
|
|
Foo
|
|
.foo(); //~ ERROR use of deprecated
|
|
}
|