mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-01 06:51:58 +00:00
28 lines
912 B
Plaintext
28 lines
912 B
Plaintext
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`.
|