Sign in
android
/
toolchain
/
rustc
/
5139364148b53d79de1b5e778004d41a6a33a4a2
/
.
/
tests
/
ui
/
coroutine
/
type-mismatch-signature-deduction.rs
blob: d4ca622e80f53d76d97e0d90b2ec8a6a835603cb [
file
] [
log
] [
blame
]
#![
feature
(
coroutines
,
coroutine_trait
)]
use
std
::
ops
::
Coroutine
;
fn
foo
()
->
impl
Coroutine
<
Return
=
i32
>
{
//~^ ERROR type mismatch
||
{
if
false
{
return
Ok
(
6
);
}
yield
();
5
//~ ERROR mismatched types [E0308]
}
}
fn
main
()
{}