mirror of
https://git.proxmox.com/git/rustc
synced 2025-05-29 09:22:35 +00:00
12 lines
494 B
Plaintext
12 lines
494 B
Plaintext
// 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]
|
|
}
|