make Parser::parse_foreign_item() return a foreign item or error

closes #54441
This commit is contained in:
Austin Bonander 2018-10-03 14:24:31 -07:00
parent a57f1c9c95
commit 9da428dad8
5 changed files with 40 additions and 16 deletions

View file

@ -10,7 +10,7 @@
// compile-flags: -Z parse-only
// error-pattern:expected one of `(`, `fn`, `static`, `type`, or `}` here
// error-pattern:expected one of `(`, `fn`, `static`, or `type`
extern {
pub pub fn foo();
}