rust/src/test/ui/parser/default.stderr

9 lines
328 B
Plaintext
Raw Normal View History

2018-10-20 15:36:17 -05:00
error: expected one of `async`, `const`, `existential`, `extern`, `fn`, `type`, or `unsafe`, found `pub`
2018-12-25 09:56:47 -06:00
--> $DIR/default.rs:22:13
2018-10-20 15:36:17 -05:00
|
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