1 // Regression test for #88653, where a confusing warning about a
2 // type mismatch in generator arguments was issued.
4 #![feature(generators, generator_trait)]
6 use std::ops::Generator;
8 fn foo(bar: bool) -> impl Generator<(bool,)> {
9 //~^ ERROR: type mismatch in generator arguments [E0631]
10 //~| NOTE: expected due to this
11 //~| NOTE: expected generator signature `fn((bool,)) -> _`
12 //~| NOTE: in this expansion of desugaring of `impl Trait`
13 //~| NOTE: in this expansion of desugaring of `impl Trait`
15 //~^ NOTE: found signature defined here