Skip to content

Instantly share code, notes, and snippets.

@ZhangHanDong
Forked from anonymous/playground.rs
Created September 24, 2020 21:36
Show Gist options
  • Save ZhangHanDong/3b11b11f0d49e5e9c25dd6e89d3c045e to your computer and use it in GitHub Desktop.
Save ZhangHanDong/3b11b11f0d49e5e9c25dd6e89d3c045e to your computer and use it in GitHub Desktop.
Rust code shared from the playground
impl<
'four>For for
& 'four for<
'fore>For where
for<'fore>For:For
{fn four( self:&&
'four for <'fore>
For){ print!(
"four" )}} fn
main(){ four(&(
four as for<'four>fn(&'four for<'fore>
For)))}trait For{fn four(&self){}}fn
four(four:&for<'four>For){<&for<'four>
For as For>::four(&{((&four).four(),four
.four());
four})}
impl For
for for<
'four>fn
(&'four
for<'fore
>For){fn
four(&self
){print!(
"for")}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment