Ignore feature-gate-nll.rs in Polonius compare mode

This is a test about turning the NLL feature gate on, ignored by the NLL compare-mode.
This commit is contained in:
lqd 2019-06-11 19:08:56 +02:00
parent 273bfd43c1
commit 63c837ef8d
2 changed files with 3 additions and 2 deletions

View file

@ -3,6 +3,7 @@
// Don't use compare-mode=nll, since that turns on NLL.
// ignore-compare-mode-nll
// ignore-compare-mode-polonius
#![feature(rustc_attrs)]

View file

@ -1,5 +1,5 @@
warning[E0502]: cannot borrow `*x.1` as immutable because it is also borrowed as mutable
--> $DIR/feature-gate-nll.rs:14:13
--> $DIR/feature-gate-nll.rs:15:13
|
LL | let m = &mut x;
| ------ mutable borrow occurs here
@ -14,7 +14,7 @@ LL | m;
= note: for more information, try `rustc --explain E0729`
error: compilation successful
--> $DIR/feature-gate-nll.rs:10:1
--> $DIR/feature-gate-nll.rs:11:1
|
LL | / fn main() {
LL | | let mut x = (33, &0);