Merge pull request #674 from matthewjasper/2phase-on-edition
Use edition flag for 2phase test
This commit is contained in:
@@ -1,5 +1,3 @@
|
|||||||
#![feature(nll)]
|
|
||||||
|
|
||||||
trait S: Sized {
|
trait S: Sized {
|
||||||
fn tpb(&mut self, _s: Self) {}
|
fn tpb(&mut self, _s: Self) {}
|
||||||
}
|
}
|
||||||
@@ -54,6 +52,8 @@ fn with_interior_mutability() {
|
|||||||
|
|
||||||
let mut x = Cell::new(1);
|
let mut x = Cell::new(1);
|
||||||
let l = &x;
|
let l = &x;
|
||||||
|
|
||||||
|
#[allow(unknown_lints, mutable_borrow_reservation_conflict)]
|
||||||
x
|
x
|
||||||
.do_the_thing({
|
.do_the_thing({
|
||||||
x.set(3);
|
x.set(3);
|
||||||
|
|||||||
Reference in New Issue
Block a user