2019-03-03 14:14:25 -06:00
|
|
|
error: expected one of `)`, `,`, `.`, `?`, or an operator, found `;`
|
|
|
|
--> $DIR/token-error-correct-3.rs:15:35
|
|
|
|
|
|
|
|
|
LL | callback(path.as_ref();
|
2019-03-03 14:45:49 -06:00
|
|
|
| - ^
|
|
|
|
| | |
|
|
|
|
| | help: `)` may belong here
|
|
|
|
| unclosed delimiter
|
|
|
|
|
|
|
|
error: expected one of `.`, `;`, `?`, `}`, or an operator, found `)`
|
|
|
|
--> $DIR/token-error-correct-3.rs:19:9
|
|
|
|
|
|
|
|
|
LL | fs::create_dir_all(path.as_ref()).map(|()| true)
|
|
|
|
| - expected one of `.`, `;`, `?`, `}`, or an operator here
|
2019-03-09 06:03:44 -06:00
|
|
|
LL |
|
2019-03-03 14:45:49 -06:00
|
|
|
LL | } else {
|
|
|
|
| ^ 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
|
|
|
|
|
2019-03-03 14:14:25 -06:00
|
|
|
LL | if !is_directory(path.as_ref()) {
|
2017-01-11 16:18:08 -06:00
|
|
|
| ^^^^^^^^^^^^ not found in this scope
|
2016-11-30 16:35:25 -06:00
|
|
|
|
2019-03-03 14:45:49 -06:00
|
|
|
error[E0308]: mismatched types
|
|
|
|
--> $DIR/token-error-correct-3.rs:17:13
|
|
|
|
|
|
|
|
|
LL | fs::create_dir_all(path.as_ref()).map(|()| true)
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^- help: try adding a semicolon: `;`
|
|
|
|
| |
|
|
|
|
| expected (), found enum `std::result::Result`
|
2016-11-30 16:35:25 -06:00
|
|
|
|
|
2019-03-03 14:45:49 -06:00
|
|
|
= note: expected type `()`
|
|
|
|
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
|
|
|
|
2019-04-17 12:26:38 -05:00
|
|
|
Some errors have detailed explanations: E0308, E0425.
|
2019-03-03 14:45:49 -06:00
|
|
|
For more information about an error, try `rustc --explain E0308`.
|