rust/tests/ui/issues/issue-38458.rs

6 lines
97 B
Rust
Raw Normal View History

2016-12-19 20:34:36 -06:00
const x: () = {
return; //~ ERROR return statement outside of function body
};
fn main() {}