Rollup merge of #52073 - xfix:patch-7, r=oli-obk

Add a punch card to weird expressions test
This commit is contained in:
kennytm 2018-07-06 07:07:23 +08:00
commit 596d1a782d
No known key found for this signature in database
GPG Key ID: FEF6C8051D0E013C

View File

@ -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();
}