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