]>
git.proxmox.com Git - rustc.git/blob - src/test/ui/cell-does-not-clone.rs
13 fn clone(&self) -> Foo
{
14 // Using Cell in any way should never cause clone() to be
15 // invoked -- after all, that would permit evil user code to
16 // abuse `Cell` and trigger crashes.
23 let x
= Cell
::new(Foo { x: 22 }
);