1 // Check that this can be compiled in a reasonable time.
2 
3 // build-pass
4 
main()5 fn main() {
6     // 96 nested closures
7     let x = ();
8     || || || || || || || ||
9     || || || || || || || ||
10     || || || || || || || ||
11     || || || || || || || ||
12 
13     || || || || || || || ||
14     || || || || || || || ||
15     || || || || || || || ||
16     || || || || || || || ||
17 
18     || || || || || || || ||
19     || || || || || || || ||
20     || || || || || || || ||
21     || || || || || || || ||
22     [&(), &x];
23 }
24