summary refs log tree commit diff
path: root/src/test/ui/parser/trait-pub-method.stderr
blob: d4db961c3fa9cae43a22a4660b97d6095d806714 (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:2:5
   |
LL | trait Foo {
   |            - expected one of 7 possible tokens here
LL |     pub fn foo();
   |     ^^^ unexpected token

error: aborting due to previous error