mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-01 23:12:02 +00:00
12 lines
496 B
Rust
12 lines
496 B
Rust
//@ 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]
|
|
|
|
let _baz = ["a", "b"].connect(" "); //~ ERROR use of deprecated method `std::slice::<impl [T]>::connect`: renamed to join [deprecated]
|
|
}
|