File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1010
1111// pretty-expanded FIXME #25180
1212
13- const empty : & ' static Fn ( ) = & || println ! ( "ICE here" ) ;
13+ const EMPTY : & ' static Fn ( ) = & || println ! ( "ICE here" ) ;
1414
15- const one_argument : & ' static Fn ( u32 ) = & |y| println ( "{}" , y) ;
15+ const ONE_ARGUMENT : & ' static Fn ( u32 ) = & |y| println ! ( "{}" , y) ;
1616
17- const plus_21 : & ' static Fn ( u32 ) -> u32 = |y| y + 21 ;
17+ const PLUS_21 : & ' static ( Fn ( u32 ) -> u32 ) = & |y| y + 21 ;
1818
19- const multi_and_local : & ' static Fn ( u32 , u32 ) -> u32 = |x, y| {
19+ const MULTI_AND_LOCAL : & ' static ( Fn ( u32 , u32 ) -> u32 ) = & |x, y| {
2020 let tmp = x + y;
21- tmp * 2 ;
21+ tmp * 2
2222} ;
2323
2424pub fn main ( ) {
25- empty ( ) ;
26- one_argument ( 42 ) ;
27- assert ! ( plus_21 ( 21 ) == 42 ) ;
28- assert ! ( multi_and_local ( 1 , 2 ) == 6 ) ;
25+ EMPTY ( ) ;
26+ ONE_ARGUMENT ( 42 ) ;
27+ assert ! ( PLUS_21 ( 21 ) == 42 ) ;
28+ assert ! ( MULTI_AND_LOCAL ( 1 , 2 ) == 6 ) ;
2929}
3030
You can’t perform that action at this time.
0 commit comments