X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=src%2Ftest%2Fui%2Fborrowck%2Fborrowck-swap-mut-base-ptr.stderr;h=35007216dace1e80fe2b81bac57397dc2633fdba;hb=620a03f5aa7490cc904f868c91fbb303ec6a3274;hp=27824725e53edfcb870512bf5bbd201bf98bce1d;hpb=2531d43f19753366c551b3fe5a34658cf34f5f06;p=rust.git diff --git a/src/test/ui/borrowck/borrowck-swap-mut-base-ptr.stderr b/src/test/ui/borrowck/borrowck-swap-mut-base-ptr.stderr index 27824725e53..35007216dac 100644 --- a/src/test/ui/borrowck/borrowck-swap-mut-base-ptr.stderr +++ b/src/test/ui/borrowck/borrowck-swap-mut-base-ptr.stderr @@ -1,5 +1,5 @@ error[E0502]: cannot borrow `t0` as mutable because `*t0` is also borrowed as immutable - --> $DIR/borrowck-swap-mut-base-ptr.rs:23:15 + --> $DIR/borrowck-swap-mut-base-ptr.rs:13:15 | LL | let p: &isize = &*t0; // Freezes `*t0` | --- immutable borrow occurs here