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-27 05:51:20 +00: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-27 05:51:20 +00:00
}