Rollup merge of #119028 - oberien:patch-1, r=cjgillot

Add more weirdness to weird-exprs.rs
This commit is contained in:
León Orell Valerian Liehr 2024-01-23 21:19:52 +01:00 committed by GitHub
commit e8f9e5481e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -231,6 +231,31 @@ pub mod cx {
let _cx: cx::cx::Cx = cx::cx::cx::cx::cx::Cx; 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() { pub fn main() {
strange(); strange();
funny(); funny();
@ -257,4 +282,6 @@ pub fn main() {
semisemisemisemisemi(); semisemisemisemisemi();
useful_syntax(); useful_syntax();
infcx(); infcx();
return_already();
fake_macros();
} }