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