Sign in
rust
/
rust-lang
/
rust
/
HEAD
/
.
/
tests
/
ui
/
coroutine
/
print
/
coroutine-print-verbose-3.rs
blob: 5dd15fc1b9516d94dd0b11096cedec0bb7a69e3b [
file
] [
log
] [
blame
]
//@ compile-flags: -Zverbose-internals
#![
feature
(
coroutines
,
coroutine_trait
,
stmt_expr_attributes
)]
fn
main
()
{
let
x
=
"Type mismatch test"
;
let
coroutine
:
()
=
#[
coroutine
]
||
{
//~^ ERROR mismatched types
yield
1i32
;
return
x
;
};
}