summaryrefslogtreecommitdiffstats
path: root/tests/ui/deprecation/issue-84637-deprecated-associated-function.fixed
blob: 99a2b09614fd99495f8b71da07d66a67b6c26ebd (plain)
1
2
3
4
5
6
7
8
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]
}