Skip to content

Commit 5f42aa6

Browse files
committed
illegal_write2 does not work with optimizations
1 parent e9f79f5 commit 5f42aa6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/compile-fail/stacked_borrows/illegal_write2.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// We fail to detect this when neither this nor libstd are optimized/have retagging.
2+
// FIXME: Investigate that.
3+
// compile-flags: -Zmir-opt-level=0
4+
15
#![allow(unused_variables)]
26

37
fn main() {

0 commit comments

Comments
 (0)