Skip to content

Commit

Permalink
Rustup to rustc 1.42.0-nightly (9ff30a781 2019-12-21)
Browse files Browse the repository at this point in the history
  • Loading branch information
oli-obk committed Dec 21, 2019
1 parent 6c75a95 commit d9859c8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion rust-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
a605441e049f0b6d5f7715b94b8ac4662fd7fcf6
9ff30a7810c586819a78188c173a7b74adbb9730
2 changes: 1 addition & 1 deletion tests/compile-fail/stacked_borrows/illegal_write6.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ fn main() {
fn foo(a: &mut u32, y: *mut u32) -> u32 {
*a = 1;
let _b = &*a;
unsafe { *y = 2; } //~ ERROR: borrow stack
unsafe { *y = 2; } //~ ERROR: not granting access to tag
return *a;
}

0 comments on commit d9859c8

Please sign in to comment.