granite-rust/src/test/ui/can-begin-expr-check.rs

21 lines
318 B
Rust
Raw Normal View History

2017-01-26 21:51:20 -08:00
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`
}