rust/tests/ui/deprecation/issue-84637-deprecated-associated-function.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

10 lines
355 B
Rust
Raw Normal View History

2021-05-06 21:41:04 -05:00
// 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]
2021-05-06 21:41:04 -05:00
let _bar = " aoeu".trim_left(); //~ ERROR use of deprecated method `core::str::<impl str>::trim_left`: superseded by `trim_start` [deprecated]
2021-05-06 21:41:04 -05:00
}