]> git.lizzy.rs Git - rust.git/blob - src/test/ui/deprecation/issue-84637-deprecated-associated-function.stderr
Auto merge of #82624 - ojeda:rwlock-example-deadlock, r=JohnTitor
[rust.git] / src / test / ui / deprecation / issue-84637-deprecated-associated-function.stderr
1 error: use of deprecated associated function `core::str::<impl str>::trim_left`: superseded by `trim_start`
2   --> $DIR/issue-84637-deprecated-associated-function.rs:6:21
3    |
4 LL |     let _foo = str::trim_left("   aoeu");
5    |                     ^^^^^^^^^ help: replace the use of the deprecated associated function: `trim_start`
6    |
7 note: the lint level is defined here
8   --> $DIR/issue-84637-deprecated-associated-function.rs:3:9
9    |
10 LL | #![deny(deprecated)]
11    |         ^^^^^^^^^^
12
13 error: use of deprecated associated function `core::str::<impl str>::trim_left`: superseded by `trim_start`
14   --> $DIR/issue-84637-deprecated-associated-function.rs:8:26
15    |
16 LL |     let _bar = "   aoeu".trim_left();
17    |                          ^^^^^^^^^ help: replace the use of the deprecated associated function: `trim_start`
18
19 error: aborting due to 2 previous errors
20