File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
src/test/ui/feature-gates Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 3
3
4
4
// Don't use compare-mode=nll, since that turns on NLL.
5
5
// ignore-compare-mode-nll
6
+ // ignore-compare-mode-polonius
6
7
7
8
#![ feature( rustc_attrs) ]
8
9
Original file line number Diff line number Diff line change 1
1
warning[E0502]: cannot borrow `*x.1` as immutable because it is also borrowed as mutable
2
- --> $DIR/feature-gate-nll.rs:14 :13
2
+ --> $DIR/feature-gate-nll.rs:15 :13
3
3
|
4
4
LL | let m = &mut x;
5
5
| ------ mutable borrow occurs here
@@ -14,7 +14,7 @@ LL | m;
14
14
= note: for more information, try `rustc --explain E0729`
15
15
16
16
error: compilation successful
17
- --> $DIR/feature-gate-nll.rs:10 :1
17
+ --> $DIR/feature-gate-nll.rs:11 :1
18
18
|
19
19
LL | / fn main() {
20
20
LL | | let mut x = (33, &0);
You can’t perform that action at this time.
0 commit comments