summaryrefslogtreecommitdiffstats
path: root/tests/ui/coroutine/too-many-parameters.rs
blob: 377d80c7b22e21d5bc043c453e4ed92e7dee80ac (plain)
1
2
3
4
5
6
7
8
#![feature(coroutines)]

fn main() {
    |(), ()| {
        //~^ error: too many parameters for a coroutine
        yield;
    };
}