summaryrefslogtreecommitdiffstats
path: root/tests/ui/generator/yield-in-function.rs
blob: 29b811621de1efecb5d6472f9b20b7f7a88cb32b (plain)
1
2
3
4
#![feature(generators)]

fn main() { yield; }
//~^ ERROR yield expression outside