]>
git.proxmox.com Git - rustc.git/blob - tests/ui/traits/vtable/issue-97381.rs
2 trait MyTrait
: Deref
<Target
= u32> {}
4 impl MyTrait
for MyStruct {}
5 impl Deref
for MyStruct
{
8 fn deref(&self) -> &Self::Target
{
12 fn get_concrete_value(i
: u32) -> MyStruct
{
15 fn get_boxed_value(i
: u32) -> Box
<dyn MyTrait
> {
16 Box
::new(get_concrete_value(i
))
21 .map(|i
| get_boxed_value(*i
))
27 //~^ ERROR cannot move out of `v` because it is borrowed
28 println
!("{}", ***el
> 0);