mirror of
https://github.com/rust-lang/rust.git
synced 2024-10-31 06:22:00 +00:00
10 lines
357 B
Rust
10 lines
357 B
Rust
// 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]
|
|
}
|