rust/tests/ui/issues/issue-38458.rs
2023-01-11 09:32:08 +00:00

6 lines
97 B
Rust

const x: () = {
return; //~ ERROR return statement outside of function body
};
fn main() {}