rust/tests/ui/coroutine/too-many-parameters.rs

10 lines
149 B
Rust

#![feature(coroutines)]
fn main() {
#[coroutine]
|(), ()| {
//~^ error: too many parameters for a coroutine
yield;
};
}