Add a punch card to weird expressions test

This commit is contained in:
Konrad Borowski 2018-07-05 12:07:33 +02:00 committed by Konrad Borowski
parent 6fc21e5576
commit 0ce01776ba

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