summaryrefslogtreecommitdiffstats
path: root/tests/ui/deprecation/suggestion.stderr
blob: c5f2fc09125140551b85f12f4ae21e9c766d734f (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 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