summaryrefslogtreecommitdiffstats
path: root/tests/ui/coercion/coerce-reborrow-imm-ptr-arg.rs
blob: f033e1b5d2b01a2458b6e275f062962b3abd0c21 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// run-pass
#![allow(dead_code)]
// pretty-expanded FIXME #23616

fn negate(x: &isize) -> isize {
    -*x
}

fn negate_mut(y: &mut isize) -> isize {
    negate(y)
}

fn negate_imm(y: &isize) -> isize {
    negate(y)
}

pub fn main() {}