Removed direct field usage of RangeInclusive in rustc itself.
This commit is contained in:
parent
fba903a435
commit
c916ee8511
13 changed files with 45 additions and 48 deletions
|
@ -318,7 +318,7 @@ impl<Idx: PartialOrd<Idx>> RangeTo<Idx> {
|
|||
/// # Examples
|
||||
///
|
||||
/// ```
|
||||
/// #![feature(inclusive_range_fields)]
|
||||
/// #![feature(inclusive_range_methods)]
|
||||
///
|
||||
/// assert_eq!((3..=5), std::ops::RangeInclusive::new(3, 5));
|
||||
/// assert_eq!(3 + 4 + 5, (3..=5).sum());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue