We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f3baa85 commit 439beabCopy full SHA for 439beab
src/libcore/iter/range.rs
@@ -312,11 +312,6 @@ impl<A: Step> Iterator for ops::RangeFrom<A> {
312
self.start = plus_n.add_one();
313
Some(plus_n)
314
}
315
-
316
- #[inline]
317
- fn min(self) -> Option<A> {
318
- Some(self.start)
319
- }
320
321
322
#[unstable(feature = "fused", issue = "35602")]
src/libcore/tests/iter.rs
@@ -1359,13 +1359,6 @@ fn test_range_max() {
1359
assert_eq!((1..1).max(), None);
1360
1361
1362
-#[test]
1363
-fn test_range_from_min() {
1364
- assert_eq!((0..).min(), Some(0));
1365
- assert_eq!((-20..).min(), Some(-20));
1366
- assert_eq!((20..).min(), Some(20));
1367
-}
1368
1369
#[test]
1370
fn test_range_inc_last_max() {
1371
assert_eq!((0..=20).last(), Some(20));
0 commit comments