]> git.lizzy.rs Git - rust.git/blob - tests/ui/suggestions/remove-as_str.stderr
Rollup merge of #106670 - albertlarsan68:check-docs-in-pr-ci, r=Mark-Simulacrum
[rust.git] / tests / ui / suggestions / remove-as_str.stderr
1 error[E0599]: no method named `as_str` found for reference `&str` in the current scope
2   --> $DIR/remove-as_str.rs:2:7
3    |
4 LL |     s.as_str();
5    |      -^^^^^^-- help: remove this method call
6
7 error[E0599]: no method named `as_str` found for reference `&'a str` in the current scope
8   --> $DIR/remove-as_str.rs:7:7
9    |
10 LL |     s.as_str();
11    |      -^^^^^^-- help: remove this method call
12
13 error[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    |
16 LL |     s.as_str();
17    |      -^^^^^^-- help: remove this method call
18
19 error[E0599]: no method named `as_str` found for reference `&&str` in the current scope
20   --> $DIR/remove-as_str.rs:17:7
21    |
22 LL |     s.as_str();
23    |      -^^^^^^-- help: remove this method call
24
25 error: aborting due to 4 previous errors
26
27 For more information about this error, try `rustc --explain E0599`.