This website requires JavaScript.
Explore
Help
Register
Sign In
mikros
/
rust
Watch
1
Star
0
Fork
0
You've already forked rust
Code
Issues
Pull Requests
Packages
Projects
Releases
Wiki
Activity
06e16449d2
rust
/
tests
/
source
/
immovable_coroutines.rs
9 lines
115 B
Rust
Raw
Normal View
History
Unescape
Escape
s/generator/coroutine/
2023-10-19 16:46:28 -05:00
#![
feature(coroutines)
]
add a support for immovable generators
2018-01-30 08:14:33 -06:00
unsafe
fn
foo
(
)
{
Error on using `yield` without also using `#[coroutine]` on the closure And suggest adding the `#[coroutine]` to the closure
2024-04-11 08:15:34 -05:00
let
mut
ga
=
#[
coroutine
]
static
|
|
{
add a support for immovable generators
2018-01-30 08:14:33 -06:00
yield
1
;
}
;
}
Reference in New Issue
Copy Permalink