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