]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/resolve/token-error-correct-3.stderr
Auto merge of #43270 - petrochenkov:fixstab, r=alexcrichton
[rust.git] / src / test / ui / resolve / token-error-correct-3.stderr
index 2a50428dbb9f9b41bdd8f983f4061f80e448b0df..2e8cc40dc5175dd73b38d09c9b55ca9b90dc866f 100644 (file)
@@ -34,16 +34,13 @@ error[E0425]: cannot find function `is_directory` in this scope
 error[E0308]: mismatched types
   --> $DIR/token-error-correct-3.rs:25:13
    |
-20 |                                                                -> io::Result<bool> {
-   |                                                                   ---------------- expected `()` because of this return type
-...
 25 |             fs::create_dir_all(path.as_ref()).map(|()| true) //~ ERROR: mismatched types
-   |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^- help: did you mean to add a semicolon here? `;`
+   |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^- help: did you mean to add a semicolon here?: `;`
    |             |
    |             expected (), found enum `std::result::Result`
    |
    = note: expected type `()`
               found type `std::result::Result<bool, std::io::Error>`
 
-error: aborting due to previous error(s)
+error: aborting due to 5 previous errors