Skip to content

Commit a322029

Browse files
committed
FIXME some compiler error messages that are newly emitted in drop-lts branch.
This needs investigation: What did pnkfelix do that caused this to change?
1 parent 8df61aa commit a322029

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/test/compile-fail/regionck-closure-lifetimes.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ fn env<'a>(blk: |p: ||: 'a|) {
1616
let mut state = 0i;
1717
let statep = &mut state;
1818
blk(|| *statep = 1i); //~ ERROR captured variable `statep` does not outlive
19+
//~^ ERROR closure outlives stack frame
1920
}
2021

2122
fn no_env_no_for<'a>(blk: |p: |||: 'a) {

src/test/compile-fail/regions-freevar.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ fn wants_static_fn(_x: ||: 'static) {}
1212

1313
fn main() {
1414
let i = 3i;
15-
wants_static_fn(|| {
15+
wants_static_fn(|| { //~ ERROR closure outlives stack frame
1616
println!("i={}", i); //~ ERROR captured variable `i` does not outlive
1717
})
1818
}

0 commit comments

Comments
 (0)