2018-08-30 07:18:55 -05:00
|
|
|
// run-pass
|
2018-05-03 09:36:44 -05:00
|
|
|
fn main() {
|
2019-08-19 16:31:46 -05:00
|
|
|
// Simplified test case
|
2018-05-03 09:36:44 -05:00
|
|
|
let _ = || 0..=1;
|
|
|
|
|
2019-08-19 16:31:46 -05:00
|
|
|
// Original test case
|
2018-05-03 09:36:44 -05:00
|
|
|
let full_length = 1024;
|
|
|
|
let range = {
|
|
|
|
// do some stuff, omit here
|
|
|
|
None
|
|
|
|
};
|
|
|
|
|
|
|
|
let range = range.map(|(s, t)| s..=t).unwrap_or(0..=(full_length-1));
|
|
|
|
|
|
|
|
assert_eq!(range, 0..=1023);
|
|
|
|
}
|