We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2451ef5 commit 14f5750Copy full SHA for 14f5750
tests/fail/both_borrows/illegal_write1.rs
@@ -1,6 +1,8 @@
1
//@revisions: stack tree
2
//@[tree]compile-flags: -Zmiri-tree-borrows
3
4
+#![allow(invalid_reference_casting)]
5
+
6
fn main() {
7
let target = Box::new(42); // has an implicit raw
8
let xref = &*target;
tests/fail/stacked_borrows/illegal_write3.rs
@@ -1,3 +1,5 @@
let target = 42;
// Make sure raw ptr with raw tag cannot mutate frozen location without breaking the shared ref.
0 commit comments