diff --git a/tests/compile-fail/stacked_borrows/illegal_write2.rs b/tests/compile-fail/stacked_borrows/illegal_write2.rs index f4fefaad5e2..b53655c8214 100644 --- a/tests/compile-fail/stacked_borrows/illegal_write2.rs +++ b/tests/compile-fail/stacked_borrows/illegal_write2.rs @@ -1,3 +1,7 @@ +// We fail to detect this when neither this nor libstd are optimized/have retagging. +// FIXME: Investigate that. +// compile-flags: -Zmir-opt-level=0 + #![allow(unused_variables)] fn main() {