2016-12-01 01:35:25 +03: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-25 15:36:59 -07:00
|
|
|
| ^ expected one of `,`, `.`, `?`, or an operator here
|
2016-12-01 01:35:25 +03:00
|
|
|
|
|
|
|
error: expected one of `.`, `;`, `?`, `}`, or an operator, found `)`
|
|
|
|
--> $DIR/token-error-correct-3.rs:29:9
|
|
|
|
|
|
2017-03-24 19:14:58 -07:00
|
|
|
25 | fs::create_dir_all(path.as_ref()).map(|()| true) //~ ERROR: mismatched types
|
2017-03-25 15:36:59 -07:00
|
|
|
| - expected one of `.`, `;`, `?`, `}`, or an operator here
|
2017-03-24 19:14:58 -07:00
|
|
|
...
|
2016-12-01 01:35:25 +03:00
|
|
|
29 | } else { //~ ERROR: incorrect close delimiter: `}`
|
2017-03-24 19:14:58 -07:00
|
|
|
| ^ unexpected token
|
2016-12-01 01:35:25 +03:00
|
|
|
|
2017-01-12 01:18:08 +03:00
|
|
|
error[E0425]: cannot find function `is_directory` in this scope
|
2016-12-01 01:35:25 +03:00
|
|
|
--> $DIR/token-error-correct-3.rs:21:13
|
|
|
|
|
|
|
|
|
21 | if !is_directory(path.as_ref()) { //~ ERROR: unresolved function `is_directory`
|
2017-01-12 01:18:08 +03:00
|
|
|
| ^^^^^^^^^^^^ not found in this scope
|
2016-12-01 01:35:25 +03: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
|
2017-06-24 00:57:39 -07:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^- help: did you mean to add a semicolon here? `;`
|
|
|
|
| |
|
|
|
|
| expected (), found enum `std::result::Result`
|
2016-12-01 01:35:25 +03:00
|
|
|
|
|
|
|
|
= note: expected type `()`
|
2017-01-11 13:55:41 -08:00
|
|
|
found type `std::result::Result<bool, std::io::Error>`
|
2016-12-01 01:35:25 +03:00
|
|
|
|
2017-07-02 13:49:30 +03:00
|
|
|
error: aborting due to previous error
|
2016-12-01 01:35:25 +03:00
|
|
|
|