Skip to content

Commit 596d1a7

Browse files
committed
Rollup merge of rust-lang#52073 - xfix:patch-7, r=oli-obk
Add a punch card to weird expressions test
2 parents 6d35505 + 0ce0177 commit 596d1a7

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

src/test/run-pass/weird-exprs.rs

+13
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010

1111
// compile-flags: -Z borrowck=compare
1212

13+
#![recursion_limit = "128"]
14+
1315
use std::cell::Cell;
1416
use std::mem::swap;
1517

@@ -121,6 +123,16 @@ fn special_characters() {
121123
assert!(!val);
122124
}
123125

126+
fn punch_card() -> impl std::fmt::Debug {
127+
..=..=.. .. .. .. .. .. .. .. .. .. .. ..=.. ..
128+
..=.. ..=.. .. .. .. .. .. .. .. .. ..=..=..=..
129+
..=.. ..=.. ..=.. ..=.. .. ..=..=.. .. ..=.. ..
130+
..=..=.. .. ..=.. ..=.. ..=.. .. .. .. ..=.. ..
131+
..=.. ..=.. ..=.. ..=.. .. ..=.. .. .. ..=.. ..
132+
..=.. ..=.. ..=.. ..=.. .. .. ..=.. .. ..=.. ..
133+
..=.. ..=.. .. ..=..=.. ..=..=.. .. .. ..=.. ..
134+
}
135+
124136
pub fn main() {
125137
strange();
126138
funny();
@@ -135,4 +147,5 @@ pub fn main() {
135147
fishy();
136148
union();
137149
special_characters();
150+
punch_card();
138151
}

0 commit comments

Comments
 (0)