error: expected one of `async`, `const`, `extern`, `fn`, `type`, `unsafe`, or `}`, found `pub` | |
--> $DIR/trait-pub-method.rs:2:5 | |
| | |
LL | trait Foo { | |
| - expected one of 7 possible tokens here | |
LL | pub fn foo(); | |
| ^^^ unexpected token | |
error: aborting due to previous error | |