2018-06-01 09:05:46 -05:00
|
|
|
error: expected one of `)`, `,`, `.`, `?`, or an operator, found `;`
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/token-error-correct-3.rs:14: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
|
2019-01-27 23:04:50 -06:00
|
|
|
| - ^
|
|
|
|
| | |
|
|
|
|
| | help: `)` may belong here
|
2019-02-05 17:41:29 -06:00
|
|
|
| unclosed delimiter
|
2016-11-30 16:35:25 -06:00
|
|
|
|
|
|
|
error: expected one of `.`, `;`, `?`, `}`, or an operator, found `)`
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/token-error-correct-3.rs:20: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
|
|
|
...
|
2019-01-27 23:04:50 -06:00
|
|
|
LL | } else {
|
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-12-25 09:56:47 -06:00
|
|
|
--> $DIR/token-error-correct-3.rs:13: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-12-25 09:56:47 -06:00
|
|
|
--> $DIR/token-error-correct-3.rs:15: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
|
|
|
|
2019-01-27 23:04:50 -06:00
|
|
|
error: aborting due to 4 previous errors
|
2016-11-30 16:35:25 -06:00
|
|
|
|
2018-03-03 08:59:40 -06:00
|
|
|
Some errors occurred: E0308, E0425.
|
|
|
|
For more information about an error, try `rustc --explain E0308`.
|