]> git.lizzy.rs Git - rust.git/blob - src/test/ui/resolve/token-error-correct-3.stderr
tests: prefer edition: directives to compile-flags:--edition.
[rust.git] / src / test / ui / resolve / token-error-correct-3.stderr
1 error: incorrect close delimiter: `}`
2   --> $DIR/token-error-correct-3.rs:30:9
3    |
4 LL |         } else { //~ ERROR: incorrect close delimiter: `}`
5    |         ^
6    |
7 note: unclosed delimiter
8   --> $DIR/token-error-correct-3.rs:24:21
9    |
10 LL |             callback(path.as_ref(); //~ ERROR expected one of
11    |                     ^
12
13 error: expected one of `)`, `,`, `.`, `?`, or an operator, found `;`
14   --> $DIR/token-error-correct-3.rs:24:35
15    |
16 LL |             callback(path.as_ref(); //~ ERROR expected one of
17    |                                   ^ expected one of `)`, `,`, `.`, `?`, or an operator here
18
19 error: expected one of `.`, `;`, `?`, `}`, or an operator, found `)`
20   --> $DIR/token-error-correct-3.rs:30:9
21    |
22 LL |             fs::create_dir_all(path.as_ref()).map(|()| true) //~ ERROR: mismatched types
23    |                                                             - expected one of `.`, `;`, `?`, `}`, or an operator here
24 ...
25 LL |         } else { //~ ERROR: incorrect close delimiter: `}`
26    |         ^ unexpected token
27
28 error[E0425]: cannot find function `is_directory` in this scope
29   --> $DIR/token-error-correct-3.rs:23:13
30    |
31 LL |         if !is_directory(path.as_ref()) { //~ ERROR: cannot find function `is_directory`
32    |             ^^^^^^^^^^^^ not found in this scope
33
34 error[E0308]: mismatched types
35   --> $DIR/token-error-correct-3.rs:25:13
36    |
37 LL |             fs::create_dir_all(path.as_ref()).map(|()| true) //~ ERROR: mismatched types
38    |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^- help: try adding a semicolon: `;`
39    |             |
40    |             expected (), found enum `std::result::Result`
41    |
42    = note: expected type `()`
43               found type `std::result::Result<bool, std::io::Error>`
44
45 error: aborting due to 5 previous errors
46
47 Some errors occurred: E0308, E0425.
48 For more information about an error, try `rustc --explain E0308`.