2016-11-30 16:35:25 -06:00
|
|
|
error: incorrect close delimiter: `}`
|
|
|
|
--> $DIR/token-error-correct-3.rs:29:9
|
|
|
|
|
|
|
|
|
29 | } else { //~ ERROR: incorrect close delimiter: `}`
|
|
|
|
| ^
|
|
|
|
|
|
|
|
|
note: unclosed delimiter
|
|
|
|
--> $DIR/token-error-correct-3.rs:23:21
|
|
|
|
|
|
|
|
|
23 | callback(path.as_ref(); //~ NOTE: unclosed delimiter
|
|
|
|
| ^
|
|
|
|
|
|
|
|
error: expected one of `,`, `.`, `?`, or an operator, found `;`
|
|
|
|
--> $DIR/token-error-correct-3.rs:23:35
|
|
|
|
|
|
|
|
|
23 | callback(path.as_ref(); //~ NOTE: unclosed delimiter
|
2017-03-24 21:14:58 -05:00
|
|
|
| -^ unexpected token
|
|
|
|
| |
|
|
|
|
| expected one of `,`, `.`, `?`, or an operator after this
|
2016-11-30 16:35:25 -06:00
|
|
|
|
|
|
|
error: expected one of `.`, `;`, `?`, `}`, or an operator, found `)`
|
|
|
|
--> $DIR/token-error-correct-3.rs:29:9
|
|
|
|
|
|
2017-03-24 21:14:58 -05:00
|
|
|
25 | fs::create_dir_all(path.as_ref()).map(|()| true) //~ ERROR: mismatched types
|
|
|
|
| - expected one of `.`, `;`, `?`, `}`, or an operator after this
|
|
|
|
...
|
2016-11-30 16:35:25 -06:00
|
|
|
29 | } else { //~ ERROR: incorrect close delimiter: `}`
|
2017-03-24 21:14:58 -05:00
|
|
|
| ^ unexpected token
|
2016-11-30 16:35:25 -06:00
|
|
|
|
2017-01-11 16:18:08 -06:00
|
|
|
error[E0425]: cannot find function `is_directory` in this scope
|
2016-11-30 16:35:25 -06:00
|
|
|
--> $DIR/token-error-correct-3.rs:21:13
|
|
|
|
|
|
|
|
|
21 | if !is_directory(path.as_ref()) { //~ ERROR: unresolved function `is_directory`
|
2017-01-11 16:18:08 -06:00
|
|
|
| ^^^^^^^^^^^^ not found in this scope
|
2016-11-30 16:35:25 -06:00
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
|
|
|
--> $DIR/token-error-correct-3.rs:25:13
|
|
|
|
|
|
|
|
|
25 | fs::create_dir_all(path.as_ref()).map(|()| true) //~ ERROR: mismatched types
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected (), found enum `std::result::Result`
|
|
|
|
|
|
|
|
|
= note: expected type `()`
|
2017-01-11 15:55:41 -06:00
|
|
|
found type `std::result::Result<bool, std::io::Error>`
|
2016-11-30 16:35:25 -06:00
|
|
|
= help: here are some functions which might fulfill your needs:
|
2017-01-07 23:12:33 -06:00
|
|
|
- .unwrap()
|
|
|
|
- .unwrap_err()
|
|
|
|
- .unwrap_or_default()
|
2016-11-30 16:35:25 -06:00
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|