]> git.lizzy.rs Git - rust.git/blob - src/test/ui/closures/deeply-nested_closures.rs
Rollup merge of #97317 - GuillaumeGomez:gui-settings-text-click, r=jsha
[rust.git] / src / test / ui / closures / deeply-nested_closures.rs
1 // Check that this can be compiled in a reasonable time.
2
3 // build-pass
4
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 }