]> git.lizzy.rs Git - rust.git/blob - src/test/run-pass/coerce-reborrow-imm-ptr-arg.rs
Merge
[rust.git] / src / test / run-pass / coerce-reborrow-imm-ptr-arg.rs
1 pure fn negate(x: &int) -> int {
2     -*x
3 }
4
5 fn negate_mut(y: &mut int) -> int {
6     negate(y)
7 }
8
9 fn negate_imm(y: &int) -> int {
10     negate(y)
11 }
12
13 fn negate_const(y: &const int) -> int {
14     negate(y)
15 }
16
17 pub fn main() {}