]> git.lizzy.rs Git - rust.git/blob - src/test/ui/deprecation/issue-84637-deprecated-associated-function.fixed
Rollup merge of #93350 - gburgessiv:master, r=Mark-Simulacrum
[rust.git] / src / test / ui / deprecation / issue-84637-deprecated-associated-function.fixed
1 // run-rustfix
2
3 #![deny(deprecated)]
4
5 fn main() {
6     let _foo = str::trim_start("   aoeu"); //~ ERROR use of deprecated associated function `core::str::<impl str>::trim_left`: superseded by `trim_start` [deprecated]
7
8     let _bar = "   aoeu".trim_start(); //~ ERROR use of deprecated associated function `core::str::<impl str>::trim_left`: superseded by `trim_start` [deprecated]
9 }