about summary refs log tree commit diff
diff options
context:
space:
mode:
authorkennytm <kennytm@gmail.com>2018-07-06 07:07:23 +0800
committerkennytm <kennytm@gmail.com>2018-07-06 12:56:23 +0800
commit596d1a782d6debf0185c9908d3fa064fc7811a85 (patch)
tree7ea8390a79eeb1d5c428f1e740fec7aa5c3f7863
parent6d35505b9b528133d1af32ef9c39c3f061213dae (diff)
parent0ce01776bacbfc9077672119dcd3b70f235ba7b8 (diff)
downloadrust-596d1a782d6debf0185c9908d3fa064fc7811a85.tar.gz
rust-596d1a782d6debf0185c9908d3fa064fc7811a85.zip
Rollup merge of #52073 - xfix:patch-7, r=oli-obk
Add a punch card to weird expressions test
-rw-r--r--src/test/run-pass/weird-exprs.rs13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/test/run-pass/weird-exprs.rs b/src/test/run-pass/weird-exprs.rs
index a15fbf377ec..35120e428a7 100644
--- a/src/test/run-pass/weird-exprs.rs
+++ b/src/test/run-pass/weird-exprs.rs
@@ -10,6 +10,8 @@
 
 // compile-flags: -Z borrowck=compare
 
+#![recursion_limit = "128"]
+
 use std::cell::Cell;
 use std::mem::swap;
 
@@ -121,6 +123,16 @@ fn special_characters() {
     assert!(!val);
 }
 
+fn punch_card() -> impl std::fmt::Debug {
+    ..=..=.. ..    .. .. .. ..    .. .. .. ..    .. ..=.. ..
+    ..=.. ..=..    .. .. .. ..    .. .. .. ..    ..=..=..=..
+    ..=.. ..=..    ..=.. ..=..    .. ..=..=..    .. ..=.. ..
+    ..=..=.. ..    ..=.. ..=..    ..=.. .. ..    .. ..=.. ..
+    ..=.. ..=..    ..=.. ..=..    .. ..=.. ..    .. ..=.. ..
+    ..=.. ..=..    ..=.. ..=..    .. .. ..=..    .. ..=.. ..
+    ..=.. ..=..    .. ..=..=..    ..=..=.. ..    .. ..=.. ..
+}
+
 pub fn main() {
     strange();
     funny();
@@ -135,4 +147,5 @@ pub fn main() {
     fishy();
     union();
     special_characters();
+    punch_card();
 }