This website requires JavaScript.
Explore
Help
Sign In
nordic-dev.net
/
rust
Watch
2
Star
0
Fork
0
You've already forked rust
mirror of
https://github.com/rust-lang/rust.git
synced
2024-12-02 19:53:46 +00:00
Code
Issues
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-18 04:47:58 +00:00
fn
main
(
)
{
enum
Test
{
Very
Recover from missing comma between enum variants
2019-03-08 22:35:38 +00: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-18 04:47:58 +00:00
}
}
Reference in New Issue
Copy Permalink