Skip to content

Commit 6491eb1

Browse files
committed
Add back thinking emoji
1 parent d85ba01 commit 6491eb1

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

Diff for: src/test/ui/weird-exprs.rs

+9-6
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// run-pass
22

33
#![feature(generators)]
4-
#![feature(destructuring_assignment)]
54
#![feature(unboxed_closures, fn_traits)]
65

76
#![allow(non_camel_case_types)]
@@ -118,7 +117,7 @@ fn union() {
118117
}
119118

120119
fn special_characters() {
121-
let val = !((|(..):(_,_),(|__@_|__)|__)((&*"\\",'#')/**/,{})=={&[..=..][..];})//
120+
let val = !((|(..):(_,_),(|__@_|__)|__)((&*"\\",'🤔')/**/,{})=={&[..=..][..];})//
122121
;
123122
assert!(!val);
124123
}
@@ -167,11 +166,15 @@ fn monkey_barrel() {
167166
assert_eq!(val, ());
168167
}
169168

170-
fn unicode() {
171-
fn 𝚋𝚛𝚎𝚊𝚔() -> char { '🤔' }
169+
fn 𝚌𝚘𝚗𝚝𝚒𝚗𝚞𝚎() {
170+
type 𝚕𝚘𝚘𝚙 = i32;
171+
fn 𝚋𝚛𝚎𝚊𝚔() -> 𝚕𝚘𝚘𝚙 {
172+
let 𝚛𝚎𝚝𝚞𝚛𝚗 = 42;
173+
return 𝚛𝚎𝚝𝚞𝚛𝚗;
174+
}
172175
assert_eq!(loop {
173176
break 𝚋𝚛𝚎𝚊𝚔 ();
174-
}, '🤔');
177+
}, 42);
175178
}
176179

177180
fn function() {
@@ -210,7 +213,7 @@ pub fn main() {
210213
i_yield();
211214
match_nested_if();
212215
monkey_barrel();
213-
unicode();
216+
𝚌𝚘𝚗𝚝𝚒𝚗𝚞𝚎();
214217
function();
215218
bathroom_stall();
216219
}

0 commit comments

Comments
 (0)