rust/src/test/ui/resolve/token-error-correct-3.stderr

40 lines
1.6 KiB
Plaintext
Raw Normal View History

error: expected one of `)`, `,`, `.`, `?`, or an operator, found `;`
2018-12-25 09:56:47 -06:00
--> $DIR/token-error-correct-3.rs:14:35
|
2018-02-22 18:42:32 -06:00
LL | callback(path.as_ref(); //~ ERROR expected one of
| - ^
| | |
| | help: `)` may belong here
| unclosed delimiter
error: expected one of `.`, `;`, `?`, `}`, or an operator, found `)`
2018-12-25 09:56:47 -06:00
--> $DIR/token-error-correct-3.rs:20:9
|
2018-02-22 18:42:32 -06:00
LL | fs::create_dir_all(path.as_ref()).map(|()| true) //~ ERROR: mismatched types
| - expected one of `.`, `;`, `?`, `}`, or an operator here
...
LL | } else {
| ^ unexpected token
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
|
2018-02-22 18:42:32 -06:00
LL | if !is_directory(path.as_ref()) { //~ ERROR: cannot find function `is_directory`
| ^^^^^^^^^^^^ not found in this scope
error[E0308]: mismatched types
2018-12-25 09:56:47 -06:00
--> $DIR/token-error-correct-3.rs:15:13
|
2018-02-22 18:42:32 -06:00
LL | fs::create_dir_all(path.as_ref()).map(|()| true) //~ ERROR: mismatched types
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^- help: try adding a semicolon: `;`
| |
| expected (), found enum `std::result::Result`
|
= note: expected type `()`
2017-01-11 15:55:41 -06:00
found type `std::result::Result<bool, std::io::Error>`
error: aborting due to 4 previous errors
2018-03-03 08:59:40 -06:00
Some errors occurred: E0308, E0425.
For more information about an error, try `rustc --explain E0308`.