File tree Expand file tree Collapse file tree 1 file changed +31
-0
lines changed
Expand file tree Collapse file tree 1 file changed +31
-0
lines changed Original file line number Diff line number Diff line change @@ -77,6 +77,34 @@ fn angrydome() {
7777
7878fn evil_lincoln ( ) { let _evil = println ! ( "lincoln" ) ; }
7979
80+ fn dots ( ) {
81+ assert_eq ! ( String :: from( ".................................................." ) ,
82+ format!( "{:?}" , .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. ..) ) ;
83+ }
84+
85+ fn you_eight ( ) {
86+ assert_eq ! ( 8 , {
87+ macro_rules! u8 {
88+ ( u8 ) => {
89+ mod u8 {
90+ pub fn u8 <' u8 >( u8 : & ' u8 u8 ) -> & ' u8 u8 {
91+ "u8" ;
92+ u8
93+ }
94+ }
95+ } ;
96+ }
97+
98+ u8 !( u8 ) ;
99+ let & u8 : & u8 = u8 :: u8 ( & 8u8 ) ;
100+ u8
101+ } ) ;
102+ }
103+
104+ fn fishy ( ) {
105+ assert_eq ! ( String :: from( "><>" ) , String :: <>:: from:: <>( "><>" ) . chars:: <>( ) . rev:: <>( ) . collect:: <String >( ) ) ;
106+ }
107+
80108pub fn main ( ) {
81109 strange ( ) ;
82110 funny ( ) ;
@@ -86,4 +114,7 @@ pub fn main() {
86114 canttouchthis ( ) ;
87115 angrydome ( ) ;
88116 evil_lincoln ( ) ;
117+ dots ( ) ;
118+ you_eight ( ) ;
119+ fishy ( ) ;
89120}
You can’t perform that action at this time.
0 commit comments