mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 07:14:28 +00:00
30 lines
746 B
Plaintext
30 lines
746 B
Plaintext
error: use of deprecated function `bar::deprecated`: replaced by `replacement`
|
|
--> $DIR/suggestion.rs:42:10
|
|
|
|
|
LL | bar::deprecated();
|
|
| ^^^^^^^^^^
|
|
|
|
|
note: the lint level is defined here
|
|
--> $DIR/suggestion.rs:8:9
|
|
|
|
|
LL | #![deny(deprecated)]
|
|
| ^^^^^^^^^^
|
|
help: replace the use of the deprecated function
|
|
|
|
|
LL | bar::replacement();
|
|
| ~~~~~~~~~~~
|
|
|
|
error: use of deprecated associated function `Foo::deprecated`: replaced by `replacement`
|
|
--> $DIR/suggestion.rs:40:9
|
|
|
|
|
LL | foo.deprecated();
|
|
| ^^^^^^^^^^
|
|
|
|
|
help: replace the use of the deprecated associated function
|
|
|
|
|
LL | foo.replacement();
|
|
| ~~~~~~~~~~~
|
|
|
|
error: aborting due to 2 previous errors
|
|
|