This website requires JavaScript.
Explore
Help
Register
Sign In
mikros
/
rust
Watch
1
Star
0
Fork
0
You've already forked rust
Code
Issues
Pull Requests
Packages
Projects
Releases
Wiki
Activity
c0b7b41cff
rust
/
src
/
test
/
ui
/
parser
/
duplicate-visibility.rs
5 lines
97 B
Rust
Raw
Normal View
History
Unescape
Escape
make `Parser::parse_foreign_item()` return a foreign item or error closes #54441
2018-10-03 16:24:31 -05:00
// error-pattern:expected one of `(`, `fn`, `static`, or `type`
libsyntax: refactor the parser to consider foreign items as items parse_item_or_view_item() would drop visibility if none of the conditions following it would hold. This was the case when parsing extern {} blocks, where the function was only used to parse view items, but discarded the visibility of the first not-view item.
2012-10-09 04:59:03 -05:00
extern
{
pub
pub
fn
foo
(
)
;
}
Reference in New Issue
Copy Permalink