about summary refs log tree commit diff
path: root/tests/ui/feature-gates/feature-gate-new_range.rs
blob: 32eeb0424b645feb0d075a0b8a36095a52709b83 (plain)
1
2
3
4
5
6
7
8
9
10
#![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
}