rust/tests/ui/deprecation/suggestion.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

30 lines
720 B
Plaintext
Raw Normal View History

2021-06-15 08:21:58 +00:00
error: use of deprecated function `bar::deprecated`: replaced by `replacement`
--> $DIR/suggestion.rs:42:10
|
2021-06-15 08:21:58 +00:00
LL | bar::deprecated();
| ^^^^^^^^^^
|
2020-01-22 23:57:38 +00:00
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 method `Foo::deprecated`: replaced by `replacement`
--> $DIR/suggestion.rs:40:9
2021-06-15 08:21:58 +00:00
|
LL | foo.deprecated();
| ^^^^^^^^^^
|
help: replace the use of the deprecated method
|
LL | foo.replacement();
| ~~~~~~~~~~~
2021-06-15 08:21:58 +00:00
error: aborting due to 2 previous errors