]> git.proxmox.com Git - rustc.git/blame - src/test/ui/borrowck/borrowck-lend-args.rs
Update unsuspicious file list
[rustc.git] / src / test / ui / borrowck / borrowck-lend-args.rs
CommitLineData
b7449926 1// run-pass
0bf4aa26 2#![allow(dead_code)]
1a4d82fc 3
c34b1796 4// pretty-expanded FIXME #23616
223e47cc 5
c34b1796
AL
6fn borrow(_v: &isize) {}
7
8fn borrow_from_arg_imm_ref(v: Box<isize>) {
1a4d82fc 9 borrow(&*v);
223e47cc
LB
10}
11
c34b1796 12fn borrow_from_arg_mut_ref(v: &mut Box<isize>) {
1a4d82fc 13 borrow(&**v);
223e47cc
LB
14}
15
c34b1796 16fn borrow_from_arg_copy(v: Box<isize>) {
1a4d82fc 17 borrow(&*v);
223e47cc
LB
18}
19
20pub fn main() {
21}