#![allow(dead_code, deprecated, unused_variables, unused_mut)] #![feature(range_into_bounds)] use std::ops::Bound::*; use std::ops::IntoBounds; fn main() { assert_eq!((0..5).into_bounds(), (Included(0), Excluded(5))); assert_eq!((..= 7).into_bounds(), (Unbounded, Included(7))); }