summaryrefslogtreecommitdiffstats
path: root/tests/ui/suggestions/remove-as_str.stderr
blob: 534c497780a95e959982113289f50a128fcc8629 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
error[E0599]: no method named `as_str` found for reference `&str` in the current scope
  --> $DIR/remove-as_str.rs:2:7
   |
LL |     s.as_str();
   |      -^^^^^^-- help: remove this method call

error[E0599]: no method named `as_str` found for reference `&'a str` in the current scope
  --> $DIR/remove-as_str.rs:7:7
   |
LL |     s.as_str();
   |      -^^^^^^-- help: remove this method call

error[E0599]: no method named `as_str` found for mutable reference `&mut str` in the current scope
  --> $DIR/remove-as_str.rs:12:7
   |
LL |     s.as_str();
   |      -^^^^^^-- help: remove this method call

error[E0599]: no method named `as_str` found for reference `&&str` in the current scope
  --> $DIR/remove-as_str.rs:17:7
   |
LL |     s.as_str();
   |      -^^^^^^-- help: remove this method call

error: aborting due to 4 previous errors

For more information about this error, try `rustc --explain E0599`.