mirror of
https://github.com/rust-lang/rust.git
synced 2025-01-22 12:43:36 +00:00
6611567f9e
Also add a test case for inserting a semicolon on extern fns. Without this fix, we got an error like this: error: expected one of `->`, `where`, or `{`, found `}` --> chk.rs:3:1 | 2 | fn foo() | --- - expected one of `->`, `where`, or `{` | | | while parsing this `fn` 3 | } | ^ unexpected token Since this is inside an extern block, you're required to write function prototypes with no body. This fixes a regression, and adds a test case for it. |
||
---|---|---|
.. | ||
src | ||
Cargo.toml |