about summary refs log tree commit diff
path: root/tests/ui/deprecation/suggestion.stderr
blob: 58e4219d37b9817b0381e963fca40fbb5af0bfe7 (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
30
31
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::deprecated();
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.deprecated();
LL +     foo.replacement();
   |

error: aborting due to 2 previous errors