mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-10 02:56:52 +00:00
add implicit ctx
This commit is contained in:
parent
e308f3346b
commit
d69a83b021
@ -9,6 +9,6 @@ native "cdecl" mod rustrt {
|
||||
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 New Issue
Block a user