Sign in
rust
/
rust
/
9b1f20d20dc00a950f99a00a34be9d2ca78d1f0d
/
.
/
tests
/
ui
/
coroutine
/
static-move-suggestion.fixed
blob: 56445be4715ffa05fa909edb8899719ab66623da [
file
]
//@ run-rustfix
// check to make sure that we suggest adding `move` after `static`
#![feature(coroutines)]
fn check
()
->
impl
Sized
{
let
x
=
0
;
#[coroutine]
static
move
||
{
//~^ ERROR E0373
yield
;
x
}
}
fn main
()
{
check
();
}