Content-Length: 24089 | pFad | https://doc.rust-lang.org/std/string/../error/../string/../vec/../../../../error_codes/./E0708.html

E0708 - Error codes index

Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Error code E0708

Note: this error code is no longer emitted by the compiler.

async non-move closures with parameters are currently not supported.

Erroneous code example:

fn main() {
    let add_one = async |num: u8| {
        num + 1
    };
}

async with non-move is currently not supported with the current version, you can use successfully by using move:

fn main() {
    let add_one = async move |num: u8| { // ok!
        num + 1
    };
}








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: https://doc.rust-lang.org/std/string/../error/../string/../vec/../../../../error_codes/./E0708.html

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy