Skip to content

Commit

Permalink
Add iterator test case for eq_op lint
Browse files Browse the repository at this point in the history
  • Loading branch information
ThibsG committed Oct 14, 2020
1 parent 121a047 commit 71c29b5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/ui/eq_op.rs
Original file line number Diff line number Diff line change
Expand Up @@ -137,4 +137,8 @@ fn check_assert_identical_args() {
debug_assert_ne!(a, b);
debug_assert_ne!(a, a + 1);
debug_assert_ne!(a + 1, b + 1);

let my_vec = vec![1; 5];
let mut my_iter = my_vec.iter();
assert_ne!(my_iter.next(), my_iter.next());
}

0 comments on commit 71c29b5

Please sign in to comment.