Add more weirdness to weird-exprs.rs

This commit is contained in:
Jaro Fietz 2023-12-16 23:32:24 +01:00 committed by oberien
parent 02ad6676dd
commit 2d1b2a9906

View File

@ -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();
@ -257,4 +282,6 @@ pub fn main() {
semisemisemisemisemi();
useful_syntax();
infcx();
return_already();
cursed_macros();
}