]> git.lizzy.rs Git - rust.git/blob - src/test/ui/feature-gates/feature-gate-nll.stderr
Rollup merge of #53317 - estebank:abolish-ice, r=oli-obk
[rust.git] / src / test / ui / feature-gates / feature-gate-nll.stderr
1 error[E0506]: cannot assign to `x` because it is borrowed
2   --> $DIR/feature-gate-nll.rs:17:5
3    |
4 LL |     let p = &x;
5    |              - borrow of `x` occurs here
6 LL |     x = 22; //~ ERROR cannot assign to `x` because it is borrowed [E0506]
7    |     ^^^^^^ assignment to borrowed `x` occurs here
8
9 error: aborting due to previous error
10
11 For more information about this error, try `rustc --explain E0506`.