rust/tests/ui/parser/can-begin-expr-check.rs
2023-01-11 09:32:08 +00:00

21 lines
316 B
Rust

pub fn main() {
return;
return ();
return as ();
return return as ();
return return return;
return if true {
()
} else {
()
};
loop {
return break as ();
}
return enum; //~ ERROR expected one of `;`, `}`, or an operator, found keyword `enum`
}