summaryrefslogtreecommitdiffstats
path: root/tests/ui/parser/can-begin-expr-check.rs
blob: e5be8de79a958461eeb0e711b39f36afc6d46bbe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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`
}