rust/src/test/ui/can-begin-expr-check.rs
2018-12-25 21:08:33 -07:00

21 lines
318 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 `enum`
}