1 error: missing `fn`, `type`, or `const` for impl-item declaration
2 --> $DIR/issue-40006.rs:1:13
8 | |____^ missing `fn`, `type`, or `const`
10 error: missing `fn`, `type`, or `const` for trait-item declaration
11 --> $DIR/issue-40006.rs:8:10
16 | |____^ missing `fn`, `type`, or `const`
18 error: expected `[`, found `#`
19 --> $DIR/issue-40006.rs:10:17
24 error: missing `fn`, `type`, or `const` for trait-item declaration
25 --> $DIR/issue-40006.rs:10:21
28 | _____________________^
31 | |____^ missing `fn`, `type`, or `const`
33 error: missing `fn`, `type`, or `const` for trait-item declaration
34 --> $DIR/issue-40006.rs:12:11
39 | |____^ missing `fn`, `type`, or `const`
41 error: expected one of `async`, `const`, `extern`, `fn`, `type`, `unsafe`, or `}`, found `;`
42 --> $DIR/issue-40006.rs:13:18
45 | ^ expected one of 7 possible tokens here
47 error: expected one of `!` or `::`, found `(`
48 --> $DIR/issue-40006.rs:14:9
51 | ^ expected one of `!` or `::` here
53 error: missing `fn`, `type`, or `const` for impl-item declaration
54 --> $DIR/issue-40006.rs:18:8
56 LL | 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:1:6
63 | ^^^^^ the trait `X` cannot be made into an object
66 | --- associated function `xxx` has no `self` parameter
68 error: aborting due to 9 previous errors
70 For more information about this error, try `rustc --explain E0038`.