rust/src/test/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
326 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 ();
}
2019-10-22 11:46:19 -07:00
return enum; //~ ERROR expected one of `.`, `;`, `?`, `}`, or an operator, found keyword `enum`
2017-01-26 21:51:20 -08:00
}