]> git.lizzy.rs Git - rust.git/blob - src/test/ui/coercion/coerce-reborrow-imm-ptr-arg.rs
Add 'src/tools/rust-analyzer/' from commit '977e12a0bdc3e329af179ef3a9d466af9eb613bb'
[rust.git] / src / test / 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() {}