]> git.lizzy.rs Git - rust.git/blob - src/test/ui/generator/too-many-parameters.rs
Rollup merge of #95376 - WaffleLapkin:drain_keep_rest, r=dtolnay
[rust.git] / src / test / ui / generator / too-many-parameters.rs
1 #![feature(generators)]
2
3 fn main() {
4     |(), ()| {
5         //~^ error: too many parameters for a generator
6         yield;
7     };
8 }