1 //! Test that we get the expected type mismatch error instead of "closure is expected to take 0
2 //! arguments" (which got introduced after implementing resume arguments).
4 #![feature(generators, generator_trait)]
6 use std::ops::Generator;
8 fn f<G: Generator>(_: G, _: G::Return) {}
17 //~^ error: `if` and `else` have incompatible types