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

Cannot define async fn with no_std #56974

Open
Nemo157 opened this Issue Dec 19, 2018 · 1 comment

Comments

Projects
None yet
3 participants
@Nemo157
Copy link
Contributor

Nemo157 commented Dec 19, 2018

#![feature(async_await, futures_api)]

#![no_std]

pub async fn foo() {
}

(playground) currently fails with

error[E0433]: failed to resolve: could not find `from_generator` in `future`

This should also work with whatever the syntax for await is, currently it fails earlier than this error because of await! only being defined in std, see #56767.

@Nemo157 Nemo157 referenced this issue Dec 19, 2018

Open

Tracking issue for async/await (RFC 2394) #50547

1 of 11 tasks complete
@oli-obk

This comment has been minimized.

Copy link
Contributor

oli-obk commented Dec 19, 2018

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