mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-01 23:12:02 +00:00
22 lines
308 B
Rust
22 lines
308 B
Rust
//@ 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() {
|
|
}
|