2017-12-10 13:47:55 -06:00
|
|
|
warning: use of deprecated item 'lint_output_format::foo': text
|
2017-12-21 12:15:15 -06:00
|
|
|
--> $DIR/lint-output-format-2.rs:20:26
|
2017-12-10 13:47:55 -06:00
|
|
|
|
|
|
|
|
20 | use lint_output_format::{foo, bar};
|
2017-12-21 12:15:15 -06:00
|
|
|
| ^^^
|
2017-12-10 13:47:55 -06:00
|
|
|
|
|
|
|
|
= note: #[warn(deprecated)] on by default
|
|
|
|
|
|
|
|
warning: use of deprecated item 'lint_output_format::foo': text
|
2017-12-10 14:29:24 -06:00
|
|
|
--> $DIR/lint-output-format-2.rs:25:14
|
2017-12-10 13:47:55 -06:00
|
|
|
|
|
2017-12-10 14:29:24 -06:00
|
|
|
25 | let _x = foo();
|
2017-12-10 13:47:55 -06:00
|
|
|
| ^^^
|
|
|
|
|
|
|
|
error: compilation successful
|
2017-12-10 14:29:24 -06:00
|
|
|
--> $DIR/lint-output-format-2.rs:24:1
|
2017-12-10 13:47:55 -06:00
|
|
|
|
|
2017-12-10 14:29:24 -06:00
|
|
|
24 | / fn main() { //~ ERROR: compilation successful
|
|
|
|
25 | | let _x = foo();
|
|
|
|
26 | | //~^ WARNING use of deprecated item 'lint_output_format::foo': text
|
|
|
|
27 | | let _y = bar();
|
|
|
|
28 | | }
|
2017-12-10 13:47:55 -06:00
|
|
|
| |_^
|
|
|
|
|