Skip to content

Commit c4efdf2

Browse files
committed
update compile-fail tests to current stable error messages
1 parent 48e92af commit c4efdf2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tests/compile-fail/scope_invariance.rs

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

1515
scope
1616
.create_function_mut(|_, ()| {
17+
//~^ error: closure may outlive the current function, but it borrows `test`, which is owned by the current function
1718
test.field = 42;
18-
//~^ error: `test` does not live long enough
1919
Ok(())
2020
})
2121
.unwrap()

tests/compile-fail/scope_mutable_aliasing.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ fn main() {
1212
lua.scope(|scope| {
1313
let a = scope.create_nonstatic_userdata(MyUserData(&mut i)).unwrap();
1414
let b = scope.create_nonstatic_userdata(MyUserData(&mut i)).unwrap();
15-
//~^ error: cannot borrow `*i` as mutable more than once at a time
15+
//~^ error: cannot borrow `i` as mutable more than once at a time
1616
});
1717
});
1818
}

0 commit comments

Comments
 (0)