rust/tests/ui/coroutine/yield-in-args.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

12 lines
158 B
Rust
Raw Normal View History

2023-10-19 21:46:28 +00:00
#![feature(coroutines)]
2017-07-14 22:01:20 +00:00
fn foo(_b: &bool, _a: ()) {}
fn main() {
#[coroutine]
2017-07-15 19:28:42 +00:00
|| {
let b = true;
foo(&b, yield); //~ ERROR
};
2017-07-14 22:01:20 +00:00
}