rust/src/test/compile-fail/return-in-block-function.rs
2012-08-10 12:20:58 -07:00

6 lines
92 B
Rust

fn main() {
let _x = || {
return //~ ERROR: `return` in block function
};
}