Skip to content

Commit 66aa3d0

Browse files
committed
make the loop infinite
1 parent 679d10f commit 66aa3d0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/run-pass/threadleak_ignored.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,6 @@ fn main() {
2121

2222
let _detached = std::thread::spawn(|| {
2323
X.with(|x| *x.borrow_mut() = Some(LoudDrop(1)));
24+
loop {}
2425
});
2526
}

0 commit comments

Comments
 (0)