mirror of
https://git.proxmox.com/git/rustc
synced 2025-06-02 03:40:10 +00:00
10 lines
355 B
Rust
10 lines
355 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]
|
|
}
|