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