Sign in
fuchsia
/
third_party
/
rust
/
346aec9b02f3c74f3fce97fd6bda24709d220e49
/
.
/
src
/
test
/
ui
/
generator
/
type-mismatch-signature-deduction.rs
blob: 7774ff48f56b730b7bdc028dccf03771e07cee1e [
file
] [
log
] [
blame
]
#![
feature
(
generators
,
generator_trait
)]
use
std
::
ops
::
Generator
;
fn
foo
()
->
impl
Generator
<
Return
=
i32
>
{
//~ ERROR type mismatch
||
{
if
false
{
return
Ok
(
6
);
}
yield
();
5
//~ ERROR mismatched types [E0308]
}
}
fn
main
()
{}