error: expected one of `(`, `const`, `default`, `extern`, `fn`, `type`, or `unsafe`, found `}` --> $DIR/issue-41155.rs:13:1 | 12 | pub | - expected one of 7 possible tokens here 13 | } | ^ unexpected token error[E0412]: cannot find type `S` in this scope --> $DIR/issue-41155.rs:11:6 | 11 | impl S { | ^ not found in this scope error[E0601]: main function not found error: aborting due to 3 previous errors