]>
git.proxmox.com Git - rustc.git/blob - src/test/ui/unique-object-noncopyable.rs
1 #![feature(box_syntax)]
22 let x
= box Bar { x: 10 }
;
23 let y
: Box
<dyn Foo
> = x
as Box
<dyn Foo
>;
24 let _z
= y
.clone(); //~ ERROR no method named `clone` found