rust/tests/ui/generator/issue-88653.stderr

16 lines
503 B
Plaintext
Raw Normal View History

error[E0631]: type mismatch in generator arguments
--> $DIR/issue-88653.rs:8:22
|
LL | fn foo(bar: bool) -> impl Generator<(bool,)> {
2022-07-28 10:33:10 -05:00
| ^^^^^^^^^^^^^^^^^^^^^^^ expected due to this
...
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) -> _`
error: aborting due to previous error
For more information about this error, try `rustc --explain E0631`.