Skip to content

Commit

Permalink
fixed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
michirakara committed Nov 8, 2024
1 parent f63f5f3 commit 67b0560
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tests/ui/impl-trait/example-calendar.rs
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ impl<'a, 'b> std::ops::Add<&'b NaiveDate> for &'a NaiveDate {
}

impl std::iter::Step for NaiveDate {
fn steps_between(_: &Self, _: &Self) -> Option<usize> {
fn steps_between(_: &Self, _: &Self) -> (usize, Option<usize>) {
unimplemented!()
}

Expand Down
4 changes: 2 additions & 2 deletions tests/ui/issues/issue-48006.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ use std::iter::Step;

#[cfg(target_pointer_width = "16")]
fn main() {
assert!(Step::steps_between(&0u32, &u32::MAX).is_none());
assert!(Step::steps_between(&0u32, &u32::MAX).1.is_none());
}

#[cfg(any(target_pointer_width = "32", target_pointer_width = "64"))]
fn main() {
assert!(Step::steps_between(&0u32, &u32::MAX).is_some());
assert!(Step::steps_between(&0u32, &u32::MAX).1.is_some());
}

0 comments on commit 67b0560

Please sign in to comment.