]> git.lizzy.rs Git - rust.git/blob - src/tools/miri/tests/pass/stacked-borrows/zst-field-retagging-terminates.rs
Auto merge of #103299 - nikic:usub-overflow, r=wesleywiser
[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 }