clarify test purpose

This commit is contained in:
Ralf Jung 2022-08-29 07:46:03 -04:00 committed by GitHub
parent 70b960b879
commit c9b36b4ded
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,4 +1,5 @@
//@compile-flags: -Zmiri-retag-fields
// Checks that the test does not run forever (which relies on a fast path).
fn main() {
let array = [(); usize::MAX];
drop(array); // Pass the array to a function, retagging its fields