diff options
Diffstat (limited to '')
-rw-r--r-- | src/test/ui/deprecation/suggestion.stderr | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/src/test/ui/deprecation/suggestion.stderr b/src/test/ui/deprecation/suggestion.stderr new file mode 100644 index 000000000..c5f2fc091 --- /dev/null +++ b/src/test/ui/deprecation/suggestion.stderr @@ -0,0 +1,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 + |