]> git.lizzy.rs Git - rust.git/blob - src/tools/miri/tests/pass/stacked-borrows/zst-field-retagging-terminates.rs
Rollup merge of #103084 - inquisitivecrystal:control-flow, r=scottmcm
[rust.git] / src / tools / miri / tests / pass / stacked-borrows / zst-field-retagging-terminates.rs
1 //@compile-flags: -Zmiri-retag-fields
2 // Checks that the test does not run forever (which relies on a fast path).
3 fn main() {
4     let array = [(); usize::MAX];
5     drop(array); // Pass the array to a function, retagging its fields
6 }