Skip to content

Commit

Permalink
Rollup merge of rust-lang#52073 - xfix:patch-7, r=oli-obk
Browse files Browse the repository at this point in the history
Add a punch card to weird expressions test
  • Loading branch information
kennytm committed Jul 6, 2018
2 parents f93c2ce + 0ce0177 commit 01fb455
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/test/run-pass/weird-exprs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@

// compile-flags: -Z borrowck=compare

#![recursion_limit = "128"]

use std::cell::Cell;
use std::mem::swap;

Expand Down Expand Up @@ -121,6 +123,16 @@ fn special_characters() {
assert!(!val);
}

fn punch_card() -> impl std::fmt::Debug {
..=..=.. .. .. .. .. .. .. .. .. .. .. ..=.. ..
..=.. ..=.. .. .. .. .. .. .. .. .. ..=..=..=..
..=.. ..=.. ..=.. ..=.. .. ..=..=.. .. ..=.. ..
..=..=.. .. ..=.. ..=.. ..=.. .. .. .. ..=.. ..
..=.. ..=.. ..=.. ..=.. .. ..=.. .. .. ..=.. ..
..=.. ..=.. ..=.. ..=.. .. .. ..=.. .. ..=.. ..
..=.. ..=.. .. ..=..=.. ..=..=.. .. .. ..=.. ..
}

pub fn main() {
strange();
funny();
Expand All @@ -135,4 +147,5 @@ pub fn main() {
fishy();
union();
special_characters();
punch_card();
}

0 comments on commit 01fb455

Please sign in to comment.