Skip to content

Commit 5b6b440

Browse files
committed
tests: update tests/ui/issues/issue-2190-1.rs
- Convert `run-pass` to `check-pass`, the test is about closure inference based on expected type, does not need to run-pass. - Dropped unnecessary ignores.
1 parent 2b48b11 commit 5b6b440

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

tests/ui/issues/issue-2190-1.rs

+5-9
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,16 @@
1-
//@ run-pass
2-
#![allow(unused_must_use)]
3-
#![allow(non_upper_case_globals)]
4-
5-
//@ ignore-emscripten no threads
1+
//@ check-pass
62

73
use std::thread::Builder;
84

9-
static generations: usize = 1024+256+128+49;
5+
static GENERATIONS: usize = 1024+256+128+49;
106

117
fn spawn(mut f: Box<dyn FnMut() + 'static + Send>) {
12-
Builder::new().stack_size(32 * 1024).spawn(move|| f());
8+
Builder::new().stack_size(32 * 1024).spawn(move || f());
139
}
1410

1511
fn child_no(x: usize) -> Box<dyn FnMut() + 'static + Send> {
16-
Box::new(move|| {
17-
if x < generations {
12+
Box::new(move || {
13+
if x < GENERATIONS {
1814
spawn(child_no(x+1));
1915
}
2016
})

0 commit comments

Comments
 (0)