summaryrefslogtreecommitdiffstats
path: root/tests/ui/deprecation/issue-84637-deprecated-associated-function.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/deprecation/issue-84637-deprecated-associated-function.stderr')
-rw-r--r--tests/ui/deprecation/issue-84637-deprecated-associated-function.stderr8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/ui/deprecation/issue-84637-deprecated-associated-function.stderr b/tests/ui/deprecation/issue-84637-deprecated-associated-function.stderr
index 8d4529526..3b518d180 100644
--- a/tests/ui/deprecation/issue-84637-deprecated-associated-function.stderr
+++ b/tests/ui/deprecation/issue-84637-deprecated-associated-function.stderr
@@ -1,4 +1,4 @@
-error: use of deprecated associated function `core::str::<impl str>::trim_left`: superseded by `trim_start`
+error: use of deprecated method `core::str::<impl str>::trim_left`: superseded by `trim_start`
--> $DIR/issue-84637-deprecated-associated-function.rs:6:21
|
LL | let _foo = str::trim_left(" aoeu");
@@ -9,18 +9,18 @@ note: the lint level is defined here
|
LL | #![deny(deprecated)]
| ^^^^^^^^^^
-help: replace the use of the deprecated associated function
+help: replace the use of the deprecated method
|
LL | let _foo = str::trim_start(" aoeu");
| ~~~~~~~~~~
-error: use of deprecated associated function `core::str::<impl str>::trim_left`: superseded by `trim_start`
+error: use of deprecated method `core::str::<impl str>::trim_left`: superseded by `trim_start`
--> $DIR/issue-84637-deprecated-associated-function.rs:8:26
|
LL | let _bar = " aoeu".trim_left();
| ^^^^^^^^^
|
-help: replace the use of the deprecated associated function
+help: replace the use of the deprecated method
|
LL | let _bar = " aoeu".trim_start();
| ~~~~~~~~~~