diff options
Diffstat (limited to 'src/test/run-pass/borrowck-uniq-via-ref.rs')
| -rw-r--r-- | src/test/run-pass/borrowck-uniq-via-ref.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/test/run-pass/borrowck-uniq-via-ref.rs b/src/test/run-pass/borrowck-uniq-via-ref.rs index c7199fccff6..0ec87599c63 100644 --- a/src/test/run-pass/borrowck-uniq-via-ref.rs +++ b/src/test/run-pass/borrowck-uniq-via-ref.rs @@ -12,7 +12,7 @@ // pretty-expanded FIXME #23616 struct Rec { - f: Box<int>, + f: Box<isize>, } struct Outer { @@ -24,12 +24,12 @@ struct Inner { } struct Innermost { - h: Box<int>, + h: Box<isize>, } -fn borrow(_v: &int) {} +fn borrow(_v: &isize) {} -fn box_mut(v: &mut Box<int>) { +fn box_mut(v: &mut Box<isize>) { borrow(&**v); // OK: &mut -> &imm } @@ -41,7 +41,7 @@ fn box_mut_recs(v: &mut Outer) { borrow(&*v.f.g.h); // OK: &mut -> &imm } -fn box_imm(v: &Box<int>) { +fn box_imm(v: &Box<isize>) { borrow(&**v); // OK } |
