]> git.lizzy.rs Git - rust.git/blob - tests/ui/deprecation/deprecation-in-future.rs
Move /src/test to /tests
[rust.git] / tests / ui / deprecation / deprecation-in-future.rs
1 // check-pass
2
3 #![deny(deprecated_in_future)]
4
5 #[deprecated(since = "99.99.99", note = "text")]
6 pub fn deprecated_future() {}
7
8 fn test() {
9     deprecated_future(); // ok; deprecated_in_future only applies with `#![feature(staged_api)]`
10     //~^ WARNING use of deprecated function `deprecated_future`: text [deprecated]
11 }
12
13 fn main() {}