diff options
Diffstat (limited to 'vendor/rayon-core/src/compile_fail/rc_upvar.rs')
-rw-r--r-- | vendor/rayon-core/src/compile_fail/rc_upvar.rs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/vendor/rayon-core/src/compile_fail/rc_upvar.rs b/vendor/rayon-core/src/compile_fail/rc_upvar.rs new file mode 100644 index 000000000..62895bf22 --- /dev/null +++ b/vendor/rayon-core/src/compile_fail/rc_upvar.rs @@ -0,0 +1,11 @@ +/*! ```compile_fail,E0277 + +use std::rc::Rc; + +fn main() { + let r = Rc::new(22); + rayon_core::join(|| r.clone(), || r.clone()); + //~^ ERROR +} + +``` */ |