mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 14:55:26 +00:00
14 lines
336 B
Rust
14 lines
336 B
Rust
//@ check-pass
|
|
|
|
#![deny(deprecated_in_future)]
|
|
|
|
#[deprecated(since = "99.99.99", note = "text")]
|
|
pub fn deprecated_future() {}
|
|
|
|
fn test() {
|
|
deprecated_future(); // ok; deprecated_in_future only applies with `#![feature(staged_api)]`
|
|
//~^ WARNING use of deprecated function `deprecated_future`: text [deprecated]
|
|
}
|
|
|
|
fn main() {}
|