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