}
let a = vec[0]; //~ ERROR cannot move out
//~| NOTE cannot move out of here
+ //~| NOTE move occurs because
//~| HELP consider borrowing here
}
}
let a = vec[0]; //~ ERROR cannot move out
//~| NOTE cannot move out of here
+ //~| NOTE move occurs because
//~| HELP consider borrowing here
}
}
let a = vec[0]; //~ ERROR cannot move out
//~| NOTE cannot move out of here
+ //~| NOTE move occurs because
//~| HELP consider borrowing here
}