]>
git.proxmox.com Git - rustc.git/blob - src/test/ui/issues/issue-7013.rs
1 #![feature(box_syntax)]
3 use std
::cell
::RefCell
;
7 fn set(&mut self, v
: Rc
<RefCell
<A
>>);
11 v
: Option
<Rc
<RefCell
<A
>>>
15 fn set(&mut self, v
: Rc
<RefCell
<A
>>)
22 v
: Box
<dyn Foo
+ Send
>,
26 let a
= A {v: box B{v: None}
as Box
<dyn Foo
+ Send
>};
27 //~^ ERROR `std::rc::Rc<std::cell::RefCell<A>>` cannot be sent between threads safely