1 error: missing `fn`, `type`, or `const` for impl-item declaration
2 --> $DIR/issue-40006.rs:11:9
5 | _________^ starting here...
7 | |____^ ...ending here: missing `fn`, `type`, or `const`
9 error: missing `fn`, `type`, or `const` for trait-item declaration
10 --> $DIR/issue-40006.rs:17:10
13 | __________^ starting here...
15 | |____^ ...ending here: missing `fn`, `type`, or `const`
17 error: expected `[`, found `#`
18 --> $DIR/issue-40006.rs:19:17
23 error: missing `fn`, `type`, or `const` for trait-item declaration
24 --> $DIR/issue-40006.rs:19:21
27 | _____________________^ starting here...
29 | |____^ ...ending here: missing `fn`, `type`, or `const`
31 error: missing `fn`, `type`, or `const` for trait-item declaration
32 --> $DIR/issue-40006.rs:20:11
35 | ___________^ starting here...
37 | |____^ ...ending here: missing `fn`, `type`, or `const`
39 error: expected one of `const`, `extern`, `fn`, `type`, `unsafe`, or `}`, found `;`
40 --> $DIR/issue-40006.rs:21:18
43 | ^ expected one of `const`, `extern`, `fn`, `type`, `unsafe`, or `}` here
45 error: expected one of `!` or `::`, found `(`
46 --> $DIR/issue-40006.rs:22:9
51 | expected one of `!` or `::` here
53 error: missing `fn`, `type`, or `const` for impl-item declaration
54 --> $DIR/issue-40006.rs:26:8
56 26 | pub hello_method(&self) {
57 | ^ missing `fn`, `type`, or `const`
59 error[E0038]: the trait `X` cannot be made into an object
60 --> $DIR/issue-40006.rs:11:6
63 | ^ the trait `X` cannot be made into an object
65 = note: method `xxx` has no receiver
67 error: aborting due to previous error