summaryrefslogtreecommitdiffstats
path: root/src/test/ui/deprecation/issue-84637-deprecated-associated-function.fixed
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/deprecation/issue-84637-deprecated-associated-function.fixed')
-rw-r--r--src/test/ui/deprecation/issue-84637-deprecated-associated-function.fixed9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/test/ui/deprecation/issue-84637-deprecated-associated-function.fixed b/src/test/ui/deprecation/issue-84637-deprecated-associated-function.fixed
new file mode 100644
index 000000000..99a2b0961
--- /dev/null
+++ b/src/test/ui/deprecation/issue-84637-deprecated-associated-function.fixed
@@ -0,0 +1,9 @@
+// run-rustfix
+
+#![deny(deprecated)]
+
+fn main() {
+ let _foo = str::trim_start(" aoeu"); //~ ERROR use of deprecated associated function `core::str::<impl str>::trim_left`: superseded by `trim_start` [deprecated]
+
+ let _bar = " aoeu".trim_start(); //~ ERROR use of deprecated associated function `core::str::<impl str>::trim_left`: superseded by `trim_start` [deprecated]
+}