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