rust/tests/ui/parser/can-begin-expr-check.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

21 lines
316 B
Rust
Raw Normal View History

2017-01-26 23:51:20 -06: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 keyword `enum`
2017-01-26 23:51:20 -06:00
}