2025-01-27 13:32:10 -07:00
|
|
|
#![feature(new_range_api)]
|
|
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
|
let a: core::range::RangeFrom<u8> = 1..;
|
2025-04-05 19:19:56 +03:00
|
|
|
//~^ ERROR mismatched types
|
2025-01-27 13:32:10 -07:00
|
|
|
let b: core::range::Range<u8> = 2..3;
|
2025-04-05 19:19:56 +03:00
|
|
|
//~^ ERROR mismatched types
|
2025-01-27 13:32:10 -07:00
|
|
|
let c: core::range::RangeInclusive<u8> = 4..=5;
|
2025-04-05 19:19:56 +03:00
|
|
|
//~^ ERROR mismatched types
|
2025-01-27 13:32:10 -07:00
|
|
|
}
|