]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/issues/issue-62895.stderr
Rollup merge of #92399 - Veeupup:fix_vec_typo, r=Dylan-DPC
[rust.git] / src / test / ui / parser / issues / issue-62895.stderr
1 error: expected identifier, found reserved identifier `_`
2   --> $DIR/issue-62895.rs:4:5
3    |
4 LL | mod _ {
5    |     ^ expected identifier, found reserved identifier
6
7 error: expected identifier, found reserved identifier `_`
8   --> $DIR/issue-62895.rs:6:5
9    |
10 LL | mod _ {
11    |     ^ expected identifier, found reserved identifier
12
13 error: missing `fn` for function definition
14   --> $DIR/issue-62895.rs:7:4
15    |
16 LL | pub    g() -> is
17    |    ^^^^
18    |
19 help: add `fn` here to parse `g` as a public function
20    |
21 LL | pub fn g() -> is
22    |     ++
23
24 error: expected item, found `;`
25   --> $DIR/issue-62895.rs:10:9
26    |
27 LL | (), w20);
28    |         ^ help: remove this semicolon
29
30 error[E0412]: cannot find type `isizee` in this scope
31   --> $DIR/issue-62895.rs:5:15
32    |
33 LL | pub fn g() -> isizee {
34    |               ^^^^^^ help: a builtin type with a similar name exists: `isize`
35
36 error[E0308]: mismatched types
37   --> $DIR/issue-62895.rs:3:11
38    |
39 LL | fn v() -> isize {
40    |    -      ^^^^^ expected `isize`, found `()`
41    |    |
42    |    implicitly returns `()` as its body has no tail or `return` expression
43
44 error: aborting due to 6 previous errors
45
46 Some errors have detailed explanations: E0308, E0412.
47 For more information about an error, try `rustc --explain E0308`.