Skip to content

Commit

Permalink
Unrolled build for rust-lang#119028
Browse files Browse the repository at this point in the history
Rollup merge of rust-lang#119028 - oberien:patch-1, r=cjgillot

Add more weirdness to weird-exprs.rs
  • Loading branch information
rust-timer committed Jan 23, 2024
2 parents dfe53af + 98f5981 commit b324b37
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 b324b37

Please sign in to comment.