about summary refs log tree commit diff
path: root/tests/ui/deprecation/issue-84637-deprecated-associated-function.fixed
blob: a419a7f5e826a69d3bc21fe697092cc9d3322c46 (plain)
1
2
3
4
5
6
7
8
9
10
11
//@ run-rustfix

#![deny(deprecated)]

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

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

    let _baz = ["a", "b"].join(" "); //~ ERROR use of deprecated method `std::slice::<impl [T]>::connect`: renamed to join [deprecated]
}