Skip to content

Commit

Permalink
Temporarily disable test that ICE occurred
Browse files Browse the repository at this point in the history
  • Loading branch information
taiki-e committed Jan 16, 2021
1 parent 56c11b0 commit 8b465b0
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions tests/auto_enum.rs
Original file line number Diff line number Diff line change
Expand Up @@ -753,15 +753,16 @@ mod nightly {

#[test]
fn marker() {
fn marker1(x: usize) -> impl Iterator<Item = i32> + Clone {
#[auto_enum(Iterator, Clone)]
(0..x as i32)
.map(|x| x + 1)
.flat_map(|x| if x > 10 { marker!(0..x) } else { marker!(-100..=0) })
}
for (i, _x) in ANS.iter().enumerate() {
let _ = marker1(i).clone().sum::<i32>();
}
// TODO: uncomment when https://github.com/rust-lang/rust/issues/81007 fixed.
// fn marker1(x: usize) -> impl Iterator<Item = i32> + Clone {
// #[auto_enum(Iterator, Clone)]
// (0..x as i32)
// .map(|x| x + 1)
// .flat_map(|x| if x > 10 { marker!(0..x) } else { marker!(-100..=0) })
// }
// for (i, _x) in ANS.iter().enumerate() {
// let _ = marker1(i).clone().sum::<i32>();
// }

fn marker2(x: usize) -> impl Iterator<Item = i32> + Clone {
let a;
Expand Down

0 comments on commit 8b465b0

Please sign in to comment.