Skip to content

Commit 7213b91

Browse files
committed
Use edition flag for 2phase test
The compiler now rejects one of the examples with #![feature(nll)]
1 parent 2a03db9 commit 7213b91

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/run-pass/2phase.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#![feature(nll)]
1+
// edition:2018
22

33
trait S: Sized {
44
fn tpb(&mut self, _s: Self) {}
@@ -54,6 +54,8 @@ fn with_interior_mutability() {
5454

5555
let mut x = Cell::new(1);
5656
let l = &x;
57+
58+
#[allow(unknown_lints, mutable_borrow_reservation_conflict)]
5759
x
5860
.do_the_thing({
5961
x.set(3);

0 commit comments

Comments
 (0)