summary refs log tree commit diff
path: root/src/test/ui/parser/trait-pub-method.stderr
blob: 49bcb64aa7d6f328dcfd081c970c0e5e50df9d98 (plain)
1
2
3
4
5
6
7
8
9
10
error: expected one of `async`, `const`, `extern`, `fn`, `type`, `unsafe`, or `}`, found `pub`
  --> $DIR/trait-pub-method.rs:14:5
   |
LL | trait Foo {
   |            - expected one of 7 possible tokens here
LL |     pub fn foo();
   |     ^^^ unexpected token

error: aborting due to previous error