make Parser::parse_foreign_item() return a foreign item or error
closes #54441
This commit is contained in:
parent
a57f1c9c95
commit
9da428dad8
5 changed files with 40 additions and 16 deletions
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue