From 218caa410aa38c29984be31a5229b9fa717560ee Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 17 Apr 2024 14:19:13 +0200 Subject: Merging upstream version 1.68.2+dfsg1. Signed-off-by: Daniel Baumann --- .../deprecation/issue-84637-deprecated-associated-function.fixed | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 tests/ui/deprecation/issue-84637-deprecated-associated-function.fixed (limited to 'tests/ui/deprecation/issue-84637-deprecated-associated-function.fixed') diff --git a/tests/ui/deprecation/issue-84637-deprecated-associated-function.fixed b/tests/ui/deprecation/issue-84637-deprecated-associated-function.fixed new file mode 100644 index 000000000..99a2b0961 --- /dev/null +++ b/tests/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::::trim_left`: superseded by `trim_start` [deprecated] + + let _bar = " aoeu".trim_start(); //~ ERROR use of deprecated associated function `core::str::::trim_left`: superseded by `trim_start` [deprecated] +} -- cgit v1.2.3