2016-12-01 01:35:25 +03:00
|
|
|
error: incorrect close delimiter: `}`
|
2017-12-10 23:29:24 +03:00
|
|
|
--> $DIR/token-error-correct-3.rs:28:9
|
2016-12-01 01:35:25 +03:00
|
|
|
|
|
2017-12-10 23:29:24 +03:00
|
|
|
28 | } else { //~ ERROR: incorrect close delimiter: `}`
|
2016-12-01 01:35:25 +03:00
|
|
|
| ^
|
|
|
|
|
|
|
|
|
note: unclosed delimiter
|
2017-12-10 23:29:24 +03:00
|
|
|
--> $DIR/token-error-correct-3.rs:22:21
|
2016-12-01 01:35:25 +03:00
|
|
|
|
|
2017-12-10 23:29:24 +03:00
|
|
|
22 | callback(path.as_ref(); //~ ERROR expected one of
|
2016-12-01 01:35:25 +03:00
|
|
|
| ^
|
|
|
|
|
|
|
|
error: expected one of `,`, `.`, `?`, or an operator, found `;`
|
2017-12-10 23:29:24 +03:00
|
|
|
--> $DIR/token-error-correct-3.rs:22:35
|
2016-12-01 01:35:25 +03:00
|
|
|
|
|
2017-12-10 23:29:24 +03:00
|
|
|
22 | callback(path.as_ref(); //~ ERROR expected one of
|
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 `)`
|
2017-12-10 23:29:24 +03:00
|
|
|
--> $DIR/token-error-correct-3.rs:28:9
|
2016-12-01 01:35:25 +03:00
|
|
|
|
|
2017-12-10 23:29:24 +03:00
|
|
|
23 | 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
|
|
|
...
|
2017-12-10 23:29:24 +03:00
|
|
|
28 | } 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
|
|
|
|
|
|
2017-11-20 13:13:27 +01:00
|
|
|
21 | if !is_directory(path.as_ref()) { //~ ERROR: cannot find 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
|
2017-12-10 23:29:24 +03:00
|
|
|
--> $DIR/token-error-correct-3.rs:23:13
|
2016-12-01 01:35:25 +03:00
|
|
|
|
|
2017-12-10 23:29:24 +03:00
|
|
|
23 | fs::create_dir_all(path.as_ref()).map(|()| true) //~ ERROR: mismatched types
|
2017-07-21 13:59:17 +02:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^- help: try adding a semicolon: `;`
|
2017-06-24 00:57:39 -07:00
|
|
|
| |
|
|
|
|
| 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 16:09:09 +03:00
|
|
|
error: aborting due to 5 previous errors
|
2016-12-01 01:35:25 +03:00
|
|
|
|