1 error: expected one of `async`, `const`, `existential`, `extern`, `fn`, `type`, or `unsafe`, found `pub`
2 --> $DIR/default.rs:32:13
4 LL | default pub fn foo<T: Default>() -> T { T::default() } //~ ERROR expected one of
5 | ^^^ expected one of 7 possible tokens here
7 error: aborting due to previous error