summaryrefslogtreecommitdiffstats
path: root/tests/ui/generator/yield-in-args.rs
blob: 80110af55ab0733dad009f9caddbb58faf892f65 (plain)
1
2
3
4
5
6
7
8
9
10
#![feature(generators)]

fn foo(_b: &bool, _a: ()) {}

fn main() {
    || {
        let b = true;
        foo(&b, yield); //~ ERROR
    };
}