rust/src/test/ui/parser/trait-pub-method.stderr

11 lines
302 B
Plaintext
Raw Normal View History

2018-10-20 23:36:17 +03:00
error: expected one of `async`, `const`, `extern`, `fn`, `type`, `unsafe`, or `}`, found `pub`
2018-12-25 08:56:47 -07:00
--> $DIR/trait-pub-method.rs:4:5
2018-10-20 23:36:17 +03:00
|
LL | trait Foo {
| - expected one of 7 possible tokens here
LL | pub fn foo();
| ^^^ unexpected token
error: aborting due to previous error