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