fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #72883 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum49cae55760d

1.44.0
912 B27 linesraw
1error[E0599]: no method named `as_str` found for reference `&str` in the current scope
2  --> $DIR/remove-as_str.rs:2:7
3   |
4LL |     s.as_str();
5   |      -^^^^^^-- help: remove this method call
6
7error[E0599]: no method named `as_str` found for reference `&'a str` in the current scope
8  --> $DIR/remove-as_str.rs:7:7
9   |
10LL |     s.as_str();
11   |      -^^^^^^-- help: remove this method call
12
13error[E0599]: no method named `as_str` found for mutable reference `&mut str` in the current scope
14  --> $DIR/remove-as_str.rs:12:7
15   |
16LL |     s.as_str();
17   |      -^^^^^^-- help: remove this method call
18
19error[E0599]: no method named `as_str` found for reference `&&str` in the current scope
20  --> $DIR/remove-as_str.rs:17:7
21   |
22LL |     s.as_str();
23   |      -^^^^^^-- help: remove this method call
24
25error: aborting due to 4 previous errors
26
27For more information about this error, try `rustc --explain E0599`.