rust/src/test/ui/issues/issue-64620.rs
Esteban Küber 2ae87ff59d Avoid ICE on return outside of fn with literal array
Do not ICE when encountering `enum E { A = return [0][0] }`.
2019-09-30 15:11:19 -07:00

6 lines
101 B
Rust

enum Bug {
V1 = return [0][0] //~ERROR return statement outside of function body
}
fn main() {}