Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fails to test examples without feature std #53

Open
jonassmedegaard opened this issue Sep 10, 2023 · 1 comment
Open

fails to test examples without feature std #53

jonassmedegaard opened this issue Sep 10, 2023 · 1 comment

Comments

@jonassmedegaard
Copy link

The command cargo test --all-targets --no-default-features fails like this:

514s error[E0425]: cannot find function `spawn_local` in crate `async_task`
514s   --> examples/spawn-local.rs:22:40
514s    |
514s 22 |     let (runnable, task) = async_task::spawn_local(future, schedule);
514s    |                                        ^^^^^^^^^^^ not found in `async_task`
514s 
514s For more information about this error, try `rustc --explain E0425`.
514s error: could not compile `async-task` due to previous error
@notgull
Copy link
Member

notgull commented Sep 16, 2023

Good catch! I would accept a PR that puts that entire example under feature = "std".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants