summary refs log tree commit diff
path: root/tests/ui/coroutine/yield-in-args.rs
blob: b2827148d771aa6718f555614ef79dfda7b81669 (plain)
1
2
3
4
5
6
7
8
9
10
#![feature(coroutines)]

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

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