Skip to content

Commit 5d95492

Browse files
authored
Rollup merge of #51059 - oberien:patch-1, r=nikomatsakis
What does an expression look like, that consists only of special characters? I had a lot of fun creating this together with @CryZe
2 parents e0e598b + 5ad84cf commit 5d95492

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,12 @@ fn union() {
112112
union union<'union> { union: &'union union<'union>, }
113113
}
114114

115+
fn special_characters() {
116+
let val = !((|(..):(_,_),__@_|__)((&*"\\",'🤔')/**/,{})=={&[..=..][..];})//
117+
;
118+
assert!(!val);
119+
}
120+
115121
pub fn main() {
116122
strange();
117123
funny();
@@ -125,4 +131,5 @@ pub fn main() {
125131
you_eight();
126132
fishy();
127133
union();
134+
special_characters();
128135
}

0 commit comments

Comments
 (0)