We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 6c75a95 + d9859c8 commit a7809bfCopy full SHA for a7809bf
rust-version
@@ -1 +1 @@
1
-a605441e049f0b6d5f7715b94b8ac4662fd7fcf6
+9ff30a7810c586819a78188c173a7b74adbb9730
tests/compile-fail/stacked_borrows/illegal_write6.rs
@@ -7,6 +7,6 @@ fn main() {
7
fn foo(a: &mut u32, y: *mut u32) -> u32 {
8
*a = 1;
9
let _b = &*a;
10
- unsafe { *y = 2; } //~ ERROR: borrow stack
+ unsafe { *y = 2; } //~ ERROR: not granting access to tag
11
return *a;
12
}
0 commit comments