-warning: use of deprecated item 'lint_output_format::foo': text
- --> $DIR/lint-output-format-2.rs:17:26
+warning: use of deprecated function `lint_output_format::foo`: text
+ --> $DIR/lint-output-format-2.rs:7:26
|
LL | use lint_output_format::{foo, bar};
| ^^^
|
- = note: #[warn(deprecated)] on by default
+ = note: `#[warn(deprecated)]` on by default
-warning: use of deprecated item 'lint_output_format::foo': text
- --> $DIR/lint-output-format-2.rs:22:14
+warning: use of deprecated function `lint_output_format::foo`: text
+ --> $DIR/lint-output-format-2.rs:12:14
|
LL | let _x = foo();
| ^^^
-error: compilation successful
- --> $DIR/lint-output-format-2.rs:21:1
- |
-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 | | }
- | |_^
-
-error: aborting due to previous error
+warning: 2 warnings emitted