We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 51730fb commit df0b0d4Copy full SHA for df0b0d4
src/test/ui/weird-exprs.rs
@@ -6,6 +6,7 @@
6
#![allow(dead_code)]
7
#![allow(unreachable_code)]
8
#![allow(unused_braces, unused_must_use, unused_parens)]
9
+#![allow(uncommon_codepoints, confusable_idents)]
10
11
#![recursion_limit = "256"]
12
@@ -164,6 +165,13 @@ fn monkey_barrel() {
164
165
assert_eq!(val, ());
166
}
167
168
+fn unicode() {
169
+ fn 𝚋𝚛𝚎𝚊𝚔() -> char { '🤔' }
170
+ assert_eq!(loop {
171
+ break 𝚋𝚛𝚎𝚊𝚔 ();
172
+ }, '🤔');
173
+}
174
+
175
fn bathroom_stall() {
176
let mut i = 1;
177
matches!(2, _|_|_|_|_|_ if (i+=1) != (i+=1));
@@ -189,5 +197,6 @@ pub fn main() {
189
197
i_yield();
190
198
match_nested_if();
191
199
monkey_barrel();
200
+ unicode();
192
201
bathroom_stall();
193
202
0 commit comments