Sign in
◑
Theme
rust
/
rust
/
2a61ba8577ed3c3e1cfeb433d06cf5464ff2fdf3
/
.
/
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
();
}