Skip to content

Commit

Permalink
Add more weirdness to weird-exprs.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
oberien committed Dec 16, 2023
1 parent 02ad667 commit 2d1b2a9
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 cursed_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();
cursed_macros();
}

0 comments on commit 2d1b2a9

Please sign in to comment.