1 error: incorrect close delimiter: `}`
2 --> $DIR/token-error-correct-3.rs:29:9
4 29 | } else { //~ ERROR: incorrect close delimiter: `}`
7 note: unclosed delimiter
8 --> $DIR/token-error-correct-3.rs:23:21
10 23 | callback(path.as_ref(); //~ NOTE: unclosed delimiter
13 error: expected one of `,`, `.`, `?`, or an operator, found `;`
14 --> $DIR/token-error-correct-3.rs:23:35
16 23 | callback(path.as_ref(); //~ NOTE: unclosed delimiter
17 | ^ expected one of `,`, `.`, `?`, or an operator here
19 error: expected one of `.`, `;`, `?`, `}`, or an operator, found `)`
20 --> $DIR/token-error-correct-3.rs:29:9
22 25 | fs::create_dir_all(path.as_ref()).map(|()| true) //~ ERROR: mismatched types
23 | - expected one of `.`, `;`, `?`, `}`, or an operator here
25 29 | } else { //~ ERROR: incorrect close delimiter: `}`
28 error[E0425]: cannot find function `is_directory` in this scope
29 --> $DIR/token-error-correct-3.rs:21:13
31 21 | if !is_directory(path.as_ref()) { //~ ERROR: unresolved function `is_directory`
32 | ^^^^^^^^^^^^ not found in this scope
34 error[E0308]: mismatched types
35 --> $DIR/token-error-correct-3.rs:25:13
37 25 | fs::create_dir_all(path.as_ref()).map(|()| true) //~ ERROR: mismatched types
38 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected (), found enum `std::result::Result`
40 = note: expected type `()`
41 found type `std::result::Result<bool, std::io::Error>`
43 error: aborting due to previous error(s)