2021-09-13 12:39:30 -05:00
|
|
|
error[E0631]: type mismatch in generator arguments
|
2022-02-16 09:48:46 -06:00
|
|
|
--> $DIR/issue-88653.rs:8:22
|
2021-09-13 12:39:30 -05:00
|
|
|
|
|
2022-02-16 09:48:46 -06:00
|
|
|
LL | fn foo(bar: bool) -> impl Generator<(bool,)> {
|
2022-07-28 10:33:10 -05:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^ expected due to this
|
2022-02-16 09:48:46 -06:00
|
|
|
...
|
2022-01-27 10:34:28 -06:00
|
|
|
LL | |bar| {
|
2022-07-28 10:33:10 -05:00
|
|
|
| ----- found signature defined here
|
|
|
|
|
|
|
|
|
= note: expected generator signature `fn((bool,)) -> _`
|
|
|
|
found generator signature `fn(bool) -> _`
|
2021-09-13 12:39:30 -05:00
|
|
|
|
2022-04-28 08:25:36 -05:00
|
|
|
error: aborting due to previous error
|
2021-09-13 12:39:30 -05:00
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0631`.
|