]> git.lizzy.rs Git - rust.git/blob - src/test/ui/resolve/token-error-correct-3.stderr
report the total number of errors on compilation failure
[rust.git] / src / test / ui / resolve / token-error-correct-3.stderr
1 error: incorrect close delimiter: `}`
2   --> $DIR/token-error-correct-3.rs:29:9
3    |
4 29 |         } else { //~ ERROR: incorrect close delimiter: `}`
5    |         ^
6    |
7 note: unclosed delimiter
8   --> $DIR/token-error-correct-3.rs:23:21
9    |
10 23 |             callback(path.as_ref();  //~ NOTE: unclosed delimiter
11    |                     ^
12
13 error: expected one of `,`, `.`, `?`, or an operator, found `;`
14   --> $DIR/token-error-correct-3.rs:23:35
15    |
16 23 |             callback(path.as_ref();  //~ NOTE: unclosed delimiter
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:29:9
21    |
22 25 |             fs::create_dir_all(path.as_ref()).map(|()| true) //~ ERROR: mismatched types
23    |                                                             - expected one of `.`, `;`, `?`, `}`, or an operator here
24 ...
25 29 |         } 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:21:13
30    |
31 21 |         if !is_directory(path.as_ref()) { //~ ERROR: unresolved 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 25 |             fs::create_dir_all(path.as_ref()).map(|()| true) //~ ERROR: mismatched types
38    |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^- help: did you mean to add a semicolon here? `;`
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