mirror of
https://github.com/rust-lang/rust
synced 2024-09-15 22:50:55 +00:00
add implicit ctx
This commit is contained in:
parent
e308f3346b
commit
d69a83b021
|
@ -9,6 +9,6 @@
|
|||
fn task_yield();
|
||||
}
|
||||
|
||||
fn yield_wrap() { rustrt::task_yield(); }
|
||||
fn yield_wrap(&&_arg: ()) { rustrt::task_yield(); }
|
||||
|
||||
fn main() { task::spawn((), yield_wrap); }
|
||||
|
|
Loading…
Reference in a new issue