]> git.lizzy.rs Git - rust.git/blob - src/test/run-pass/coerce-reborrow-imm-ptr-arg.rs
auto merge of #5426 : nikomatsakis/rust/issue-4846-lifetimes-in-expl-self, r=pcwalton
[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 pub fn main() {}