summaryrefslogtreecommitdiffstats
path: root/tests/ui/deprecation/suggestion.stderr
blob: 5584b6d2f8ffb31aa5bcb55e2eb345b1bff9d0df (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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 method `Foo::deprecated`: replaced by `replacement`
  --> $DIR/suggestion.rs:40:9
   |
LL |     foo.deprecated();
   |         ^^^^^^^^^^
   |
help: replace the use of the deprecated method
   |
LL |     foo.replacement();
   |         ~~~~~~~~~~~

error: aborting due to 2 previous errors