2020-01-08 16:05:31 +00:00
|
|
|
error[E0599]: no method named `as_str` found for reference `&str` in the current scope
|
2019-09-24 15:02:21 +00:00
|
|
|
--> $DIR/remove-as_str.rs:2:7
|
|
|
|
|
|
|
|
|
LL | s.as_str();
|
2019-10-07 23:18:02 +00:00
|
|
|
| -^^^^^^-- help: remove this method call
|
2019-09-24 15:02:21 +00:00
|
|
|
|
2020-01-08 16:05:31 +00:00
|
|
|
error[E0599]: no method named `as_str` found for reference `&'a str` in the current scope
|
2019-09-24 15:02:21 +00:00
|
|
|
--> $DIR/remove-as_str.rs:7:7
|
|
|
|
|
|
|
|
|
LL | s.as_str();
|
2019-10-07 23:18:02 +00:00
|
|
|
| -^^^^^^-- help: remove this method call
|
2019-09-24 15:02:21 +00:00
|
|
|
|
2020-01-08 16:05:31 +00:00
|
|
|
error[E0599]: no method named `as_str` found for mutable reference `&mut str` in the current scope
|
2019-09-24 15:02:21 +00:00
|
|
|
--> $DIR/remove-as_str.rs:12:7
|
|
|
|
|
|
|
|
|
LL | s.as_str();
|
2019-10-07 23:18:02 +00:00
|
|
|
| -^^^^^^-- help: remove this method call
|
2019-09-24 15:02:21 +00:00
|
|
|
|
2020-01-08 16:05:31 +00:00
|
|
|
error[E0599]: no method named `as_str` found for reference `&&str` in the current scope
|
2019-09-24 15:02:21 +00:00
|
|
|
--> $DIR/remove-as_str.rs:17:7
|
|
|
|
|
|
|
|
|
LL | s.as_str();
|
2019-10-07 23:18:02 +00:00
|
|
|
| -^^^^^^-- help: remove this method call
|
2019-09-24 15:02:21 +00:00
|
|
|
|
|
|
|
error: aborting due to 4 previous errors
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0599`.
|