Sign in
android
/
toolchain
/
rustc
/
5139364148b53d79de1b5e778004d41a6a33a4a2
/
.
/
tests
/
ui
/
coroutine
/
yield-subtype.rs
blob: 3595d449823e38758c6924c0ba9a038c5b2eeee6 [
file
] [
log
] [
blame
]
// run-pass
#![
allow
(
dead_code
)]
#![
allow
(
dead_code
)]
#![
feature
(
coroutines
)]
fn
bar
<
'
a
>()
{
let
a
:
&
'
static
str
=
"hi"
;
let
b
:
&
'
a str
=
a
;
||
{
//~ WARN unused coroutine that must be used
yield a
;
yield b
;
};
}
fn
main
()
{}