]>
Commit | Line | Data |
---|---|---|
cc61c64b | 1 | error: missing `fn`, `type`, or `const` for impl-item declaration |
0731742a | 2 | --> $DIR/issue-40006.rs:1:9 |
cc61c64b | 3 | | |
532ac7d7 | 4 | LL | impl X { |
cc61c64b | 5 | | _________^ |
532ac7d7 | 6 | LL | | |
0531ce1d | 7 | LL | | Y |
cc61c64b XL |
8 | | |____^ missing `fn`, `type`, or `const` |
9 | ||
10 | error: missing `fn`, `type`, or `const` for trait-item declaration | |
0731742a | 11 | --> $DIR/issue-40006.rs:8:10 |
cc61c64b | 12 | | |
532ac7d7 | 13 | LL | trait X { |
cc61c64b | 14 | | __________^ |
0531ce1d | 15 | LL | | X() {} |
cc61c64b XL |
16 | | |____^ missing `fn`, `type`, or `const` |
17 | ||
18 | error: expected `[`, found `#` | |
0731742a | 19 | --> $DIR/issue-40006.rs:10:17 |
cc61c64b | 20 | | |
532ac7d7 | 21 | LL | fn xxx() { ### } |
0531ce1d | 22 | | ^ expected `[` |
cc61c64b XL |
23 | |
24 | error: missing `fn`, `type`, or `const` for trait-item declaration | |
0731742a | 25 | --> $DIR/issue-40006.rs:10:21 |
cc61c64b | 26 | | |
532ac7d7 | 27 | LL | fn xxx() { ### } |
cc61c64b | 28 | | _____________________^ |
532ac7d7 XL |
29 | LL | | |
30 | LL | | L = M; | |
cc61c64b XL |
31 | | |____^ missing `fn`, `type`, or `const` |
32 | ||
33 | error: missing `fn`, `type`, or `const` for trait-item declaration | |
0731742a | 34 | --> $DIR/issue-40006.rs:12:11 |
cc61c64b | 35 | | |
532ac7d7 | 36 | LL | L = M; |
cc61c64b | 37 | | ___________^ |
532ac7d7 | 38 | LL | | Z = { 2 + 3 }; |
cc61c64b XL |
39 | | |____^ missing `fn`, `type`, or `const` |
40 | ||
8faf50e0 | 41 | error: expected one of `async`, `const`, `extern`, `fn`, `type`, `unsafe`, or `}`, found `;` |
0731742a | 42 | --> $DIR/issue-40006.rs:13:18 |
cc61c64b | 43 | | |
532ac7d7 | 44 | LL | Z = { 2 + 3 }; |
8faf50e0 | 45 | | ^ expected one of 7 possible tokens here |
cc61c64b XL |
46 | |
47 | error: expected one of `!` or `::`, found `(` | |
0731742a | 48 | --> $DIR/issue-40006.rs:14:9 |
cc61c64b | 49 | | |
532ac7d7 | 50 | LL | ::Y (); |
ff7c6d11 | 51 | | ^ expected one of `!` or `::` here |
cc61c64b XL |
52 | |
53 | error: missing `fn`, `type`, or `const` for impl-item declaration | |
0731742a | 54 | --> $DIR/issue-40006.rs:18:8 |
cc61c64b | 55 | | |
532ac7d7 | 56 | LL | pub hello_method(&self) { |
cc61c64b XL |
57 | | ^ missing `fn`, `type`, or `const` |
58 | ||
59 | error[E0038]: the trait `X` cannot be made into an object | |
0731742a | 60 | --> $DIR/issue-40006.rs:1:6 |
cc61c64b | 61 | | |
532ac7d7 | 62 | LL | impl X { |
cc61c64b XL |
63 | | ^ the trait `X` cannot be made into an object |
64 | | | |
65 | = note: method `xxx` has no receiver | |
66 | ||
041b39d2 | 67 | error: aborting due to 9 previous errors |
cc61c64b | 68 | |
0531ce1d | 69 | For more information about this error, try `rustc --explain E0038`. |