]> git.lizzy.rs Git - rust.git/blob - tests/ui/coercion/coerce-reborrow-imm-ptr-arg.rs
Rollup merge of #106784 - lyming2007:issue-106695-fix, r=WaffleLapkin
[rust.git] / tests / ui / coercion / coerce-reborrow-imm-ptr-arg.rs
1 // run-pass
2 #![allow(dead_code)]
3 // pretty-expanded FIXME #23616
4
5 fn negate(x: &isize) -> isize {
6     -*x
7 }
8
9 fn negate_mut(y: &mut isize) -> isize {
10     negate(y)
11 }
12
13 fn negate_imm(y: &isize) -> isize {
14     negate(y)
15 }
16
17 pub fn main() {}