Skip to content

Commit 0257cb8

Browse files
committed
cast_mut_to_ref in write_to_shr
1 parent 9f2ed85 commit 0257cb8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/fail/tree_borrows/write_to_shr.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
//@compile-flags: -Zmiri-tree-borrows
22

3+
#![allow(cast_ref_to_mut)]
4+
35
// Very simple test that a shared reference without interior mutability cannot
46
// be written to.
57

0 commit comments

Comments
 (0)