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

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

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