diff options
Diffstat (limited to 'vendor/rayon-core/src/compile_fail/rc_return.rs')
-rw-r--r-- | vendor/rayon-core/src/compile_fail/rc_return.rs | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/vendor/rayon-core/src/compile_fail/rc_return.rs b/vendor/rayon-core/src/compile_fail/rc_return.rs new file mode 100644 index 000000000..164f8ce5e --- /dev/null +++ b/vendor/rayon-core/src/compile_fail/rc_return.rs @@ -0,0 +1,21 @@ +/** ```compile_fail,E0277 + +use std::rc::Rc; + +fn main() { + rayon_core::join(|| Rc::new(22), || ()); //~ ERROR +} + +``` */ +mod left {} + +/** ```compile_fail,E0277 + +use std::rc::Rc; + +fn main() { + rayon_core::join(|| (), || Rc::new(23)); //~ ERROR +} + +``` */ +mod right {} |