2019-03-03 14:14:25 -06:00
|
|
|
error: incorrect close delimiter: `}`
|
|
|
|
--> $DIR/token-error-correct-3.rs:19:9
|
2016-11-30 16:35:25 -06:00
|
|
|
|
|
2019-03-03 14:14:25 -06:00
|
|
|
LL | if !is_directory(path.as_ref()) {
|
|
|
|
| - close delimiter possibly meant for this
|
|
|
|
LL | //~^ ERROR cannot find function `is_directory`
|
|
|
|
LL | callback(path.as_ref();
|
|
|
|
| - un-closed delimiter
|
2017-03-24 21:14:58 -05:00
|
|
|
...
|
2019-01-27 23:04:50 -06:00
|
|
|
LL | } else {
|
2019-03-03 14:14:25 -06:00
|
|
|
| ^ incorrect close delimiter
|
|
|
|
|
|
|
|
error: expected one of `)`, `,`, `.`, `?`, or an operator, found `;`
|
|
|
|
--> $DIR/token-error-correct-3.rs:15:35
|
|
|
|
|
|
|
|
|
LL | callback(path.as_ref();
|
|
|
|
| ^ expected one of `)`, `,`, `.`, `?`, or an operator here
|
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:14:25 -06:00
|
|
|
error[E0057]: this function takes 1 parameter but 2 parameters were supplied
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/token-error-correct-3.rs:15:13
|
2016-11-30 16:35:25 -06:00
|
|
|
|
|
2019-03-03 14:14:25 -06:00
|
|
|
LL | / callback(path.as_ref();
|
|
|
|
LL | | //~^ ERROR expected one of
|
|
|
|
LL | | //~| ERROR this function takes 1 parameter but 2 parameters were supplied
|
|
|
|
LL | | fs::create_dir_all(path.as_ref()).map(|()| true)
|
|
|
|
LL | | } else {
|
|
|
|
| |_________^ expected 1 parameter
|
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-03-03 14:14:25 -06:00
|
|
|
Some errors occurred: E0057, E0425.
|
|
|
|
For more information about an error, try `rustc --explain E0057`.
|