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