1 error: missing `fn`, `type`, or `const` for associated-item declaration
2 --> $DIR/issue-40006.rs:1:13
7 | |____^ missing `fn`, `type`, or `const`
9 error: missing `fn`, `type`, or `const` for associated-item declaration
10 --> $DIR/issue-40006.rs:7:10
15 | |____^ missing `fn`, `type`, or `const`
17 error: missing `fn`, `type`, or `const` for associated-item declaration
18 --> $DIR/issue-40006.rs:15:10
23 | |____^ missing `fn`, `type`, or `const`
25 error: expected `[`, found `#`
26 --> $DIR/issue-40006.rs:19:17
31 error: missing `fn`, `type`, or `const` for associated-item declaration
32 --> $DIR/issue-40006.rs:21:10
37 | |____^ missing `fn`, `type`, or `const`
39 error: missing `fn`, `type`, or `const` for associated-item declaration
40 --> $DIR/issue-40006.rs:24:10
45 | |____^ missing `fn`, `type`, or `const`
47 error: expected one of `!` or `::`, found `(`
48 --> $DIR/issue-40006.rs:28:9
51 | ^ expected one of `!` or `::`
53 error: missing `fn`, `type`, or `const` for associated-item declaration
54 --> $DIR/issue-40006.rs:32:8
56 LL | pub hello_method(&self) {
57 | ^ missing `fn`, `type`, or `const`
59 error[E0599]: no method named `hello_method` found for type `S` in the current scope
60 --> $DIR/issue-40006.rs:38:7
63 | --------- method `hello_method` not found for this
65 LL | S.hello_method();
66 | ^^^^^^^^^^^^ method not found in `S`
68 error: aborting due to 9 previous errors
70 For more information about this error, try `rustc --explain E0599`.