]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/deprecation/suggestion.stderr
Cache expansion hash.
[rust.git] / src / test / ui / deprecation / suggestion.stderr
index b95ca3a75e46d1cef72e922544aca44ea041c54f..8a7cb1def909e3a818d6d2ca588e3dc018456dc9 100644 (file)
@@ -1,20 +1,14 @@
-error: use of deprecated function `bar::deprecated`: replaced by `replacement`
-  --> $DIR/suggestion.rs:38:10
+error: use of deprecated associated function `Foo::deprecated`: replaced by `replacement`
+  --> $DIR/suggestion.rs:27:9
    |
-LL |     bar::deprecated();
-   |          ^^^^^^^^^^ help: replace the use of the deprecated function: `replacement`
+LL |     foo.deprecated();
+   |         ^^^^^^^^^^ help: replace the use of the deprecated associated function: `replacement`
    |
 note: the lint level is defined here
-  --> $DIR/suggestion.rs:5:9
+  --> $DIR/suggestion.rs:7:9
    |
 LL | #![deny(deprecated)]
    |         ^^^^^^^^^^
 
-error: use of deprecated associated function `Foo::deprecated`: replaced by `replacement`
-  --> $DIR/suggestion.rs:36:9
-   |
-LL |     foo.deprecated();
-   |         ^^^^^^^^^^ help: replace the use of the deprecated associated function: `replacement`
-
-error: aborting due to 2 previous errors
+error: aborting due to previous error