Skip to content

Can not build for #![feature(async_closure)] #290

@boundless-forest

Description

@boundless-forest

Question

Environment:

os: Ubuntu 18.04
rust version: rustc 1.38.0-nightly (4b65a86eb 2019-07-15

Problem:

   Compiling tide v0.2.0
error[E0658]: async closures are unstable
   --> /home/wpf/.cargo/registry/src/github.com-1ecc6299db9ec823/tide-0.2.0/src/app.rs:312:28
    |
312 |         router.at("/").get(async move |_| "/");
    |                            ^^^^^
    |
    = note: for more information, see https://github.com/rust-lang/rust/issues/62290
    = help: add `#![feature(async_closure)]` to the crate attributes to enable

Additional context

I had tried as compiler prompt but it not works.

#![feature(async_closure)]

fn main() {
    println!("Hello, world!");
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions