1 error: use of deprecated function `bar::deprecated`: replaced by `replacement`
2 --> $DIR/suggestion.rs:38:10
4 LL | bar::deprecated();
5 | ^^^^^^^^^^ help: replace the use of the deprecated function: `replacement`
7 note: the lint level is defined here
8 --> $DIR/suggestion.rs:5:9
10 LL | #![deny(deprecated)]
13 error: use of deprecated associated function `Foo::deprecated`: replaced by `replacement`
14 --> $DIR/suggestion.rs:36:9
16 LL | foo.deprecated();
17 | ^^^^^^^^^^ help: replace the use of the deprecated associated function: `replacement`
19 error: aborting due to 2 previous errors