mirror of
https://github.com/rust-lang/rust.git
synced 2025-09-28 05:34:45 +00:00
11 lines
277 B
Rust
11 lines
277 B
Rust
#![feature(new_range_api)]
|
|
|
|
fn main() {
|
|
let a: core::range::RangeFrom<u8> = 1..;
|
|
//~^ ERROR mismatched types
|
|
let b: core::range::Range<u8> = 2..3;
|
|
//~^ ERROR mismatched types
|
|
let c: core::range::RangeInclusive<u8> = 4..=5;
|
|
//~^ ERROR mismatched types
|
|
}
|