Sha256: 892959949f77cadfc07458473e7a290301182027ca64428df5a8ce887be0892b

Contents?: true

Size: 376 Bytes

Versions: 38

Compression:

Stored size: 376 Bytes

Contents

/*! ```compile_fail,E0373

fn bad_scope<F>(f: F)
    where F: FnOnce(&i32) + Send,
{
    rayon_core::scope(|s| {
        let x = 22;
        s.spawn(|_| f(&x)); //~ ERROR `x` does not live long enough
    });
}

fn good_scope<F>(f: F)
    where F: FnOnce(&i32) + Send,
{
    let x = 22;
    rayon_core::scope(|s| {
        s.spawn(|_| f(&x));
    });
}

fn main() {
}

``` */

Version data entries

38 entries across 38 versions & 1 rubygems

Version Path
wasmtime-29.0.0 ./ext/cargo-vendor/rayon-core-1.12.1/src/compile_fail/scope_join_bad.rs
wasmtime-28.0.0 ./ext/cargo-vendor/rayon-core-1.12.1/src/compile_fail/scope_join_bad.rs
wasmtime-27.0.0 ./ext/cargo-vendor/rayon-core-1.12.1/src/compile_fail/scope_join_bad.rs
wasmtime-26.0.0 ./ext/cargo-vendor/rayon-core-1.12.1/src/compile_fail/scope_join_bad.rs
wasmtime-25.0.2 ./ext/cargo-vendor/rayon-core-1.12.1/src/compile_fail/scope_join_bad.rs
wasmtime-25.0.1 ./ext/cargo-vendor/rayon-core-1.12.1/src/compile_fail/scope_join_bad.rs
wasmtime-25.0.0 ./ext/cargo-vendor/rayon-core-1.12.1/src/compile_fail/scope_join_bad.rs
wasmtime-24.0.0 ./ext/cargo-vendor/rayon-core-1.12.1/src/compile_fail/scope_join_bad.rs
wasmtime-23.0.2 ./ext/cargo-vendor/rayon-core-1.12.0/src/compile_fail/scope_join_bad.rs
wasmtime-22.0.0 ./ext/cargo-vendor/rayon-core-1.12.0/src/compile_fail/scope_join_bad.rs
wasmtime-21.0.1 ./ext/cargo-vendor/rayon-core-1.12.0/src/compile_fail/scope_join_bad.rs
wasmtime-20.0.2 ./ext/cargo-vendor/rayon-core-1.12.0/src/compile_fail/scope_join_bad.rs
wasmtime-20.0.0 ./ext/cargo-vendor/rayon-core-1.12.0/src/compile_fail/scope_join_bad.rs
wasmtime-18.0.3 ./ext/cargo-vendor/rayon-core-1.12.0/src/compile_fail/scope_join_bad.rs
wasmtime-17.0.1 ./ext/cargo-vendor/rayon-core-1.12.0/src/compile_fail/scope_join_bad.rs
wasmtime-17.0.0 ./ext/cargo-vendor/rayon-core-1.12.0/src/compile_fail/scope_join_bad.rs
wasmtime-16.0.0 ./ext/cargo-vendor/rayon-core-1.12.0/src/compile_fail/scope_join_bad.rs
wasmtime-15.0.1 ./ext/cargo-vendor/rayon-core-1.12.0/src/compile_fail/scope_join_bad.rs
wasmtime-15.0.0 ./ext/cargo-vendor/rayon-core-1.12.0/src/compile_fail/scope_join_bad.rs
wasmtime-14.0.4 ./ext/cargo-vendor/rayon-core-1.12.0/src/compile_fail/scope_join_bad.rs