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:
parent
273bfd43c1
commit
63c837ef8d
2 changed files with 3 additions and 2 deletions
|
@ -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)]
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue