mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 07:14:28 +00:00
Add more weirdness to weird-exprs.rs
This commit is contained in:
parent
02ad6676dd
commit
2d1b2a9906
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user