]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/issue-62895.stderr
Rollup merge of #63416 - RalfJung:apfloat, r=eddyb
[rust.git] / src / test / ui / parser / 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 help: add `fn` here to parse `g` as a public function
19    |
20 LL | pub fn g() -> is
21    |     ^^
22
23 error: expected item, found `;`
24   --> $DIR/issue-62895.rs:10:9
25    |
26 LL | (), w20);
27    |         ^ help: remove this semicolon
28
29 error[E0412]: cannot find type `isizee` in this scope
30   --> $DIR/issue-62895.rs:5:15
31    |
32 LL | pub fn g() -> isizee {
33    |               ^^^^^^ help: a builtin type with a similar name exists: `isize`
34
35 error[E0308]: mismatched types
36   --> $DIR/issue-62895.rs:3:11
37    |
38 LL | fn v() -> isize {
39    |    -      ^^^^^ expected isize, found ()
40    |    |
41    |    implicitly returns `()` as its body has no tail or `return` expression
42    |
43    = note: expected type `isize`
44               found type `()`
45
46 error: aborting due to 6 previous errors
47
48 Some errors have detailed explanations: E0308, E0412.
49 For more information about an error, try `rustc --explain E0308`.