Skip to content

Commit

Permalink
Rollup merge of rust-lang#119028 - oberien:patch-1, r=cjgillot
Browse files Browse the repository at this point in the history
Add more weirdness to weird-exprs.rs
  • Loading branch information
fmease authored Jan 23, 2024
2 parents 0e42435 + 98f5981 commit 7f3c43b
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions tests/ui/weird-exprs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,31 @@ fn infcx() {
let _cx: cx::cx::Cx = cx::cx::cx::cx::cx::Cx;
}

fn return_already() -> impl std::fmt::Debug {
loop {
return !!!!!!!
break !!!!!!1111
}
}

fn fake_macros() -> impl std::fmt::Debug {
loop {
if! {
match! (
break! {
return! {
1337
}
}
)

{}
}

{}
}
}

pub fn main() {
strange();
funny();
Expand All @@ -257,4 +282,6 @@ pub fn main() {
semisemisemisemisemi();
useful_syntax();
infcx();
return_already();
fake_macros();
}

0 comments on commit 7f3c43b

Please sign in to comment.