]>
Commit | Line | Data |
---|---|---|
17df50a5 XL |
1 | // run-rustfix |
2 | ||
3 | #![deny(deprecated)] | |
4 | ||
5 | fn main() { | |
9ffffee4 | 6 | let _foo = str::trim_start(" aoeu"); //~ ERROR use of deprecated method `core::str::<impl str>::trim_left`: superseded by `trim_start` [deprecated] |
17df50a5 | 7 | |
9ffffee4 | 8 | let _bar = " aoeu".trim_start(); //~ ERROR use of deprecated method `core::str::<impl str>::trim_left`: superseded by `trim_start` [deprecated] |
781aab86 FG |
9 | |
10 | let _baz = ["a", "b"].join(" "); //~ ERROR use of deprecated method `std::slice::<impl [T]>::connect`: renamed to join [deprecated] | |
17df50a5 | 11 | } |