File tree Expand file tree Collapse file tree 1 file changed +10
-9
lines changed Expand file tree Collapse file tree 1 file changed +10
-9
lines changed Original file line number Diff line number Diff line change @@ -753,15 +753,16 @@ mod nightly {
753
753
754
754
#[ test]
755
755
fn marker ( ) {
756
- fn marker1 ( x : usize ) -> impl Iterator < Item = i32 > + Clone {
757
- #[ auto_enum( Iterator , Clone ) ]
758
- ( 0 ..x as i32 )
759
- . map ( |x| x + 1 )
760
- . flat_map ( |x| if x > 10 { marker ! ( 0 ..x) } else { marker ! ( -100 ..=0 ) } )
761
- }
762
- for ( i, _x) in ANS . iter ( ) . enumerate ( ) {
763
- let _ = marker1 ( i) . clone ( ) . sum :: < i32 > ( ) ;
764
- }
756
+ // TODO: uncomment when https://github.com/rust-lang/rust/issues/81007 fixed.
757
+ // fn marker1(x: usize) -> impl Iterator<Item = i32> + Clone {
758
+ // #[auto_enum(Iterator, Clone)]
759
+ // (0..x as i32)
760
+ // .map(|x| x + 1)
761
+ // .flat_map(|x| if x > 10 { marker!(0..x) } else { marker!(-100..=0) })
762
+ // }
763
+ // for (i, _x) in ANS.iter().enumerate() {
764
+ // let _ = marker1(i).clone().sum::<i32>();
765
+ // }
765
766
766
767
fn marker2 ( x : usize ) -> impl Iterator < Item = i32 > + Clone {
767
768
let a;
You can’t perform that action at this time.
0 commit comments