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