summary refs log tree commit diff
path: root/src/test/ui/parser/default.stderr
blob: 0a5c6e80df5efa53ec761e4a9262a58b9c616114 (plain)
1
2
3
4
5
6
7
8
error: expected one of `async`, `const`, `existential`, `extern`, `fn`, `type`, or `unsafe`, found `pub`
  --> $DIR/default.rs:32:13
   |
LL |     default pub fn foo<T: Default>() -> T { T::default() } //~ ERROR expected one of
   |             ^^^ expected one of 7 possible tokens here

error: aborting due to previous error