]> git.lizzy.rs Git - rust.git/blob - tests/ui/deprecation/issue-84637-deprecated-associated-function.fixed
Rollup merge of #106726 - cmorin6:fix-comment-typos, r=Nilstrieb
[rust.git] / tests / 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 }