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