2019-03-03 12:14:25 -08: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 12:45:49 -08: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 15:03:44 +03:00
|
|
|
LL |
|
2019-03-03 12:45:49 -08:00
|
|
|
LL | } else {
|
|
|
|
| ^ 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
|
2018-12-25 08:56:47 -07:00
|
|
|
--> $DIR/token-error-correct-3.rs:13:13
|
2016-12-01 01:35:25 +03:00
|
|
|
|
|
2019-03-03 12:14:25 -08:00
|
|
|
LL | if !is_directory(path.as_ref()) {
|
2017-01-12 01:18:08 +03:00
|
|
|
| ^^^^^^^^^^^^ not found in this scope
|
2016-12-01 01:35:25 +03:00
|
|
|
|
2019-03-03 12:45:49 -08: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-12-01 01:35:25 +03:00
|
|
|
|
|
2019-03-03 12:45:49 -08:00
|
|
|
= note: expected type `()`
|
|
|
|
found type `std::result::Result<bool, std::io::Error>`
|
2016-12-01 01:35:25 +03:00
|
|
|
|
2019-01-27 21:04:50 -08:00
|
|
|
error: aborting due to 4 previous errors
|
2016-12-01 01:35:25 +03:00
|
|
|
|
2019-04-17 13:26:38 -04:00
|
|
|
Some errors have detailed explanations: E0308, E0425.
|
2019-03-03 12:45:49 -08:00
|
|
|
For more information about an error, try `rustc --explain E0308`.
|