2023-10-19 16:46:28 -05:00
|
|
|
error[E0631]: type mismatch in coroutine arguments
|
2022-02-16 09:48:46 -06:00
|
|
|
--> $DIR/issue-88653.rs:8:22
|
2021-09-13 12:39:30 -05:00
|
|
|
|
|
2023-10-19 11:06:43 -05:00
|
|
|
LL | fn foo(bar: bool) -> impl Coroutine<(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
|
|
|
|
|
|
2023-10-19 16:46:28 -05:00
|
|
|
= note: expected coroutine signature `fn((bool,)) -> _`
|
|
|
|
found coroutine 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`.
|