summaryrefslogtreecommitdiffstats
path: root/tests/ui/deprecation/issue-84637-deprecated-associated-function.rs
blob: 246de2f5e4bfe384c788ce3cedbb5641410b1672 (plain)
1
2
3
4
5
6
7
8
9
// run-rustfix

#![deny(deprecated)]

fn main() {
    let _foo = str::trim_left("   aoeu"); //~ ERROR use of deprecated method `core::str::<impl str>::trim_left`: superseded by `trim_start` [deprecated]

    let _bar = "   aoeu".trim_left(); //~ ERROR use of deprecated method `core::str::<impl str>::trim_left`: superseded by `trim_start` [deprecated]
}