Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
22 lines (15 sloc) 306 Bytes
// run-pass
#![allow(dead_code)]
// pretty-expanded FIXME #23616
fn borrow(_v: &isize) {}
fn borrow_from_arg_imm_ref(v: Box<isize>) {
borrow(&*v);
}
fn borrow_from_arg_mut_ref(v: &mut Box<isize>) {
borrow(&**v);
}
fn borrow_from_arg_copy(v: Box<isize>) {
borrow(&*v);
}
pub fn main() {
}
You can’t perform that action at this time.