]> git.proxmox.com Git - rustc.git/blame - tests/ui/deprecation/issue-84637-deprecated-associated-function.fixed
New upstream version 1.74.1+dfsg1
[rustc.git] / tests / ui / deprecation / issue-84637-deprecated-associated-function.fixed
CommitLineData
17df50a5
XL
1// run-rustfix
2
3#![deny(deprecated)]
4
5fn main() {
9ffffee4 6 let _foo = str::trim_start(" aoeu"); //~ ERROR use of deprecated method `core::str::<impl str>::trim_left`: superseded by `trim_start` [deprecated]
17df50a5 7
9ffffee4 8 let _bar = " aoeu".trim_start(); //~ ERROR use of deprecated method `core::str::<impl str>::trim_left`: superseded by `trim_start` [deprecated]
781aab86
FG
9
10 let _baz = ["a", "b"].join(" "); //~ ERROR use of deprecated method `std::slice::<impl [T]>::connect`: renamed to join [deprecated]
17df50a5 11}