1 error: incorrect close delimiter: `}`
2 --> $DIR/token-error-correct-3.rs:30:9
4 LL | } else { //~ ERROR: incorrect close delimiter: `}`
7 note: unclosed delimiter
8 --> $DIR/token-error-correct-3.rs:24:21
10 LL | callback(path.as_ref(); //~ ERROR expected one of
13 error: expected one of `)`, `,`, `.`, `?`, or an operator, found `;`
14 --> $DIR/token-error-correct-3.rs:24:35
16 LL | callback(path.as_ref(); //~ ERROR expected one of
17 | ^ expected one of `)`, `,`, `.`, `?`, or an operator here
19 error: expected one of `.`, `;`, `?`, `}`, or an operator, found `)`
20 --> $DIR/token-error-correct-3.rs:30:9
22 LL | fs::create_dir_all(path.as_ref()).map(|()| true) //~ ERROR: mismatched types
23 | - expected one of `.`, `;`, `?`, `}`, or an operator here
25 LL | } else { //~ ERROR: incorrect close delimiter: `}`
28 error[E0425]: cannot find function `is_directory` in this scope
29 --> $DIR/token-error-correct-3.rs:23:13
31 LL | if !is_directory(path.as_ref()) { //~ ERROR: cannot find function `is_directory`
32 | ^^^^^^^^^^^^ not found in this scope
34 error[E0308]: mismatched types
35 --> $DIR/token-error-correct-3.rs:25:13
37 LL | fs::create_dir_all(path.as_ref()).map(|()| true) //~ ERROR: mismatched types
38 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^- help: try adding a semicolon: `;`
40 | expected (), found enum `std::result::Result`
42 = note: expected type `()`
43 found type `std::result::Result<bool, std::io::Error>`
45 error: aborting due to 5 previous errors
47 Some errors occurred: E0308, E0425.
48 For more information about an error, try `rustc --explain E0308`.