summaryrefslogtreecommitdiffstats
path: root/tests/ui/feature-gates/feature-gate-generators.rs
blob: 931fee13471267771c795ba0908c12b1db17efbf (plain)
1
2
3
4
5
6
7
8
9
10
fn main() {
    yield true; //~ ERROR yield syntax is experimental
                //~^ ERROR yield expression outside of generator literal
}

#[cfg(FALSE)]
fn foo() {
    yield; //~ ERROR yield syntax is experimental
    yield 0; //~ ERROR yield syntax is experimental
}