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