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