2020-09-10 23:41:02 -04:00
|
|
|
error[E0308]: mismatched types
|
2024-04-11 13:15:34 +00:00
|
|
|
--> $DIR/coroutine-print-verbose-3.rs:8:5
|
2020-09-10 23:41:02 -04:00
|
|
|
|
|
2024-04-11 13:15:34 +00:00
|
|
|
LL | let coroutine: () = #[coroutine]
|
|
|
|
| -- expected due to this
|
|
|
|
LL | / || {
|
2020-09-10 23:41:02 -04:00
|
|
|
LL | |
|
|
|
|
LL | | yield 1i32;
|
2024-04-11 13:15:34 +00:00
|
|
|
LL | | return x;
|
2020-09-10 23:41:02 -04:00
|
|
|
LL | | };
|
2023-10-19 21:46:28 +00:00
|
|
|
| |_____^ expected `()`, found coroutine
|
2020-09-10 23:41:02 -04:00
|
|
|
|
|
|
|
|
= note: expected unit type `()`
|
2024-01-23 15:10:23 +00:00
|
|
|
found coroutine `{main::{closure#0} upvar_tys=?4t witness=?6t}`
|
2020-09-10 23:41:02 -04:00
|
|
|
|
2023-11-21 15:44:16 +00:00
|
|
|
error: aborting due to 1 previous error
|
2020-09-10 23:41:02 -04:00
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0308`.
|