@@ -12,14 +12,14 @@ pub fn main() {
1212 let _: Box < [ isize ] > = Box :: new ( { [ 1 , 2 , 3 ] } ) ;
1313 let _: Box < [ isize ] > = Box :: new ( if true { [ 1 , 2 , 3 ] } else { [ 1 , 3 , 4 ] } ) ;
1414 let _: Box < [ isize ] > = Box :: new ( match true { true => [ 1 , 2 , 3 ] , false => [ 1 , 3 , 4 ] } ) ;
15- let _: Box < dyn Fn ( isize ) -> _ > = Box :: new ( { |x| ( x as u8 ) } ) ;
15+ let _: Box < dyn Fn ( isize ) -> _ > = Box :: new ( { |x| x as u8 } ) ;
1616 let _: Box < dyn Debug > = Box :: new ( if true { false } else { true } ) ;
1717 let _: Box < dyn Debug > = Box :: new ( match true { true => 'a' , false => 'b' } ) ;
1818
1919 let _: & [ isize ] = & { [ 1 , 2 , 3 ] } ;
2020 let _: & [ isize ] = & if true { [ 1 , 2 , 3 ] } else { [ 1 , 3 , 4 ] } ;
2121 let _: & [ isize ] = & match true { true => [ 1 , 2 , 3 ] , false => [ 1 , 3 , 4 ] } ;
22- let _: & dyn Fn ( isize ) -> _ = & { |x| ( x as u8 ) } ;
22+ let _: & dyn Fn ( isize ) -> _ = & { |x| x as u8 } ;
2323 let _: & dyn Debug = & if true { false } else { true } ;
2424 let _: & dyn Debug = & match true { true => 'a' , false => 'b' } ;
2525
@@ -31,13 +31,13 @@ pub fn main() {
3131 } ;
3232
3333 let _: Box < [ isize ] > = Box :: new ( [ 1 , 2 , 3 ] ) ;
34- let _: Box < dyn Fn ( isize ) -> _ > = Box :: new ( |x| ( x as u8 ) ) ;
34+ let _: Box < dyn Fn ( isize ) -> _ > = Box :: new ( |x| x as u8 ) ;
3535
3636 let _: Rc < RefCell < [ isize ] > > = Rc :: new ( RefCell :: new ( [ 1 , 2 , 3 ] ) ) ;
37- let _: Rc < RefCell < dyn FnMut ( isize ) -> _ > > = Rc :: new ( RefCell :: new ( |x| ( x as u8 ) ) ) ;
37+ let _: Rc < RefCell < dyn FnMut ( isize ) -> _ > > = Rc :: new ( RefCell :: new ( |x| x as u8 ) ) ;
3838
3939 let _: Vec < Box < dyn Fn ( isize ) -> _ > > = vec ! [
40- Box :: new( |x| ( x as u8 ) ) ,
41- Box :: new( |x| ( x as i16 as u8 ) ) ,
40+ Box :: new( |x| x as u8 ) ,
41+ Box :: new( |x| x as i16 as u8 ) ,
4242 ] ;
4343}
0 commit comments