Skip to content

Commit e692f1e

Browse files
committed
chore: update weird-exprs.rs
1 parent 46fc41d commit e692f1e

File tree

1 file changed

+29
-2
lines changed

1 file changed

+29
-2
lines changed

examples/weird-exprs.rs

Lines changed: 29 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
// run-pass
1+
//@ run-pass
22

3-
#![feature(generators)]
3+
#![feature(coroutines)]
44

55
#![allow(non_camel_case_types)]
66
#![allow(dead_code)]
@@ -231,6 +231,31 @@ fn infcx() {
231231
let _cx: cx::cx::Cx = cx::cx::cx::cx::cx::Cx;
232232
}
233233

234+
fn return_already() -> impl std::fmt::Debug {
235+
loop {
236+
return !!!!!!!
237+
break !!!!!!1111
238+
}
239+
}
240+
241+
fn fake_macros() -> impl std::fmt::Debug {
242+
loop {
243+
if! {
244+
match! (
245+
break! {
246+
return! {
247+
1337
248+
}
249+
}
250+
)
251+
252+
{}
253+
}
254+
255+
{}
256+
}
257+
}
258+
234259
pub fn main() {
235260
strange();
236261
funny();
@@ -257,4 +282,6 @@ pub fn main() {
257282
semisemisemisemisemi();
258283
useful_syntax();
259284
infcx();
285+
return_already();
286+
fake_macros();
260287
}

0 commit comments

Comments
 (0)