2016-11-30 16:35:25 -06:00
|
|
|
error: incorrect close delimiter: `}`
|
2018-01-02 10:19:20 -06:00
|
|
|
--> $DIR/token-error-correct-3.rs:30:9
|
2016-11-30 16:35:25 -06:00
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | } else { //~ ERROR: incorrect close delimiter: `}`
|
2016-11-30 16:35:25 -06:00
|
|
|
| ^
|
|
|
|
|
|
|
|
|
note: unclosed delimiter
|
2018-01-02 10:19:20 -06:00
|
|
|
--> $DIR/token-error-correct-3.rs:24:21
|
2016-11-30 16:35:25 -06:00
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | callback(path.as_ref(); //~ ERROR expected one of
|
2016-11-30 16:35:25 -06:00
|
|
|
| ^
|
|
|
|
|
|
|
|
error: expected one of `,`, `.`, `?`, or an operator, found `;`
|
2018-01-02 10:19:20 -06:00
|
|
|
--> $DIR/token-error-correct-3.rs:24:35
|
2016-11-30 16:35:25 -06:00
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | callback(path.as_ref(); //~ ERROR expected one of
|
2017-03-25 17:36:59 -05:00
|
|
|
| ^ expected one of `,`, `.`, `?`, or an operator here
|
2016-11-30 16:35:25 -06:00
|
|
|
|
|
|
|
error: expected one of `.`, `;`, `?`, `}`, or an operator, found `)`
|
2018-01-02 10:19:20 -06:00
|
|
|
--> $DIR/token-error-correct-3.rs:30:9
|
2016-11-30 16:35:25 -06:00
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | fs::create_dir_all(path.as_ref()).map(|()| true) //~ ERROR: mismatched types
|
2017-03-25 17:36:59 -05:00
|
|
|
| - expected one of `.`, `;`, `?`, `}`, or an operator here
|
2017-03-24 21:14:58 -05:00
|
|
|
...
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | } 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
|
2018-01-02 10:19:20 -06:00
|
|
|
--> $DIR/token-error-correct-3.rs:23:13
|
2016-11-30 16:35:25 -06:00
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | if !is_directory(path.as_ref()) { //~ ERROR: cannot find 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
|
2018-01-02 10:19:20 -06:00
|
|
|
--> $DIR/token-error-correct-3.rs:25:13
|
2016-11-30 16:35:25 -06:00
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | fs::create_dir_all(path.as_ref()).map(|()| true) //~ ERROR: mismatched types
|
2017-07-21 06:59:17 -05:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^- help: try adding a semicolon: `;`
|
2017-06-24 02:57:39 -05:00
|
|
|
| |
|
|
|
|
| expected (), found enum `std::result::Result`
|
2016-11-30 16:35:25 -06:00
|
|
|
|
|
|
|
|
= 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
|
|
|
|
2017-07-02 08:09:09 -05:00
|
|
|
error: aborting due to 5 previous errors
|
2016-11-30 16:35:25 -06:00
|
|
|
|
2018-02-19 14:40:25 -06:00
|
|
|
You've got a few errors: E0308, E0425
|
|
|
|
If you want more information on an error, try using "rustc --explain E0308"
|