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
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | 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
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | 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
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | / fn main() { //~ ERROR: compilation successful
|
|
|
|
LL | | let _x = foo();
|
|
|
|
LL | | //~^ WARNING use of deprecated item 'lint_output_format::foo': text
|
|
|
|
LL | | let _y = bar();
|
|
|
|
LL | | }
|
2017-12-10 13:47:55 -06:00
|
|
|
| |_^
|
|
|
|
|
2018-03-15 10:13:47 -05:00
|
|
|
error: aborting due to previous error
|
|
|
|
|