]> git.lizzy.rs Git - rust.git/commitdiff
fix unit tests
authorGuanqun Lu <guanqun.lu@gmail.com>
Tue, 1 Oct 2019 07:29:09 +0000 (15:29 +0800)
committerGuanqun Lu <guanqun.lu@gmail.com>
Wed, 2 Oct 2019 01:06:37 +0000 (09:06 +0800)
src/test/ui/suggestions/remove-as_str.stderr

index 47196aa2c8ea0a3e5b90b563120f9d48943db3b6..2e8b72ebd4f6deacff767034f8c580ceb46bbfc0 100644 (file)
@@ -2,25 +2,25 @@ error[E0599]: no method named `as_str` found for type `&str` in the current scop
   --> $DIR/remove-as_str.rs:2:7
    |
 LL |     s.as_str();
-   |       ^^^^^^ help: try removing `as_str`
+   |       ^^^^^^ try removing `as_str`
 
 error[E0599]: no method named `as_str` found for type `&'a str` in the current scope
   --> $DIR/remove-as_str.rs:7:7
    |
 LL |     s.as_str();
-   |       ^^^^^^ help: try removing `as_str`
+   |       ^^^^^^ try removing `as_str`
 
 error[E0599]: no method named `as_str` found for type `&mut str` in the current scope
   --> $DIR/remove-as_str.rs:12:7
    |
 LL |     s.as_str();
-   |       ^^^^^^ help: try removing `as_str`
+   |       ^^^^^^ try removing `as_str`
 
 error[E0599]: no method named `as_str` found for type `&&str` in the current scope
   --> $DIR/remove-as_str.rs:17:7
    |
 LL |     s.as_str();
-   |       ^^^^^^ help: try removing `as_str`
+   |       ^^^^^^ try removing `as_str`
 
 error: aborting due to 4 previous errors