1 error: expected one of `)`, `,`, `.`, `?`, or an operator, found `;`
2 --> $DIR/token-error-correct-3.rs:15:35
4 LL | callback(path.as_ref();
5 | - ^ help: `)` may belong here
9 error: expected one of `.`, `;`, `?`, `}`, or an operator, found `)`
10 --> $DIR/token-error-correct-3.rs:18:9
12 LL | fs::create_dir_all(path.as_ref()).map(|()| true)
13 | - expected one of `.`, `;`, `?`, `}`, or an operator
17 error[E0425]: cannot find function `is_directory` in this scope
18 --> $DIR/token-error-correct-3.rs:13:13
20 LL | if !is_directory(path.as_ref()) {
21 | ^^^^^^^^^^^^ not found in this scope
23 error: aborting due to 3 previous errors
25 For more information about this error, try `rustc --explain E0425`.