2021-05-06 21:41:04 -05:00
|
|
|
// run-rustfix
|
|
|
|
|
|
|
|
#![deny(deprecated)]
|
|
|
|
|
|
|
|
fn main() {
|
2023-02-21 15:11:08 -06:00
|
|
|
let _foo = str::trim_start(" aoeu"); //~ ERROR use of deprecated method `core::str::<impl str>::trim_left`: superseded by `trim_start` [deprecated]
|
2021-05-06 21:41:04 -05:00
|
|
|
|
2023-02-21 15:11:08 -06:00
|
|
|
let _bar = " aoeu".trim_start(); //~ ERROR use of deprecated method `core::str::<impl str>::trim_left`: superseded by `trim_start` [deprecated]
|
2023-08-21 04:51:51 -05:00
|
|
|
|
|
|
|
let _baz = ["a", "b"].join(" "); //~ ERROR use of deprecated method `std::slice::<impl [T]>::connect`: renamed to join [deprecated]
|
2021-05-06 21:41:04 -05:00
|
|
|
}
|