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
7d761fe046
rust
/
src
/
test
/
ui
/
parser
/
recover-enum.rs
12 lines
207 B
Rust
Raw
Normal View
History
Unescape
Escape
Recover out of an enum or struct's braced block. If we encounter a syntax error inside of a braced block, then we should fail by consuming the rest of the block if possible. This implements such recovery for enums and structs. Fixes #37113.
2016-10-17 23:47:58 -05:00
fn
main
(
)
{
enum
Test
{
Very
Recover from missing comma between enum variants
2019-03-08 16:35:38 -06:00
//~^ ERROR missing comma
Bad
(
usize
)
//~^ ERROR missing comma
Stuff
{
a
:
usize
}
//~^ ERROR missing comma
Here
Recover out of an enum or struct's braced block. If we encounter a syntax error inside of a braced block, then we should fail by consuming the rest of the block if possible. This implements such recovery for enums and structs. Fixes #37113.
2016-10-17 23:47:58 -05:00
}
}
Reference in New Issue
Copy Permalink