]>
Commit | Line | Data |
---|---|---|
476ff2be | 1 | // Copyright 2013 The Rust Project Developers. See the COPYRIGHT |
223e47cc LB |
2 | // file at the top-level directory of this distribution and at |
3 | // http://rust-lang.org/COPYRIGHT. | |
4 | // | |
5 | // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or | |
6 | // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license | |
7 | // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your | |
8 | // option. This file may not be copied, modified, or distributed | |
9 | // except according to those terms. | |
10 | ||
476ff2be | 11 | // aux-build:lint_output_format.rs |
223e47cc | 12 | |
ea8adc8c | 13 | // FIXME(#44232) we should warn that this isn't used. |
8bb4bdeb | 14 | #![feature(foo)] |
223e47cc | 15 | |
476ff2be | 16 | #![feature(test_feature)] |
ea8adc8c | 17 | #![feature(rustc_attrs)] |
223e47cc | 18 | |
476ff2be SL |
19 | extern crate lint_output_format; |
20 | use lint_output_format::{foo, bar}; | |
abe05a73 | 21 | //~^ WARNING use of deprecated item 'lint_output_format::foo': text |
8bb4bdeb | 22 | //~| NOTE #[warn(deprecated)] on by default |
223e47cc | 23 | |
ea8adc8c XL |
24 | #[rustc_error] |
25 | fn main() { //~ ERROR: compilation successful | |
8bb4bdeb | 26 | let _x = foo(); |
abe05a73 | 27 | //~^ WARNING use of deprecated item 'lint_output_format::foo': text |
8bb4bdeb | 28 | //~| NOTE #[warn(deprecated)] on by default |
476ff2be | 29 | let _y = bar(); |
223e47cc | 30 | } |