Skip to content

Commit 5549752

Browse files
committed
TEST: Fix compiletest on current nightly
1 parent ee0101b commit 5549752

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tests/compile-fail/basic-branding-pointers.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ fn main() {
77

88
// can hold onto the pointers for later, as long they stay in the closure
99
let _a = scope(&arr1[..], |arr| {
10-
let r = arr.pointer_range(); //~ ERROR cannot infer an appropriate lifetime
10+
let r = arr.pointer_range(); //~ ERROR borrowed data cannot be stored outside of its closure
1111
let r = r.nonempty().unwrap();
1212
let i = r.first();
1313
println!("{}", &arr[i]);

tests/compile-fail/basic-branding2.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ fn main() {
77

88
// can hold onto the indices for later, as long they stay in the closure
99
let _a = scope(&arr1[..], |arr| {
10-
let r = arr.range(); //~ ERROR cannot infer an appropriate lifetime
10+
let r = arr.range(); //~ ERROR borrowed data cannot be stored outside of its closure
1111
let r = r.nonempty().unwrap();
1212
let i = r.first();
1313
println!("{}", &arr[i]);

0 commit comments

Comments
 (0)