]> git.lizzy.rs Git - rust.git/blob - tests/ui/range/range_traits-1.rs
Rollup merge of #106717 - klensy:typo, r=lcnr
[rust.git] / tests / ui / range / range_traits-1.rs
1 use std::ops::*;
2
3 #[derive(Clone, PartialEq, Eq, PartialOrd, Ord, Hash, Debug)]
4 struct AllTheRanges {
5     a: Range<usize>,
6     //~^ ERROR can't compare
7     //~| ERROR Ord
8     b: RangeTo<usize>,
9     //~^ ERROR can't compare
10     //~| ERROR Ord
11     c: RangeFrom<usize>,
12     //~^ ERROR can't compare
13     //~| ERROR Ord
14     d: RangeFull,
15     //~^ ERROR can't compare
16     //~| ERROR Ord
17     e: RangeInclusive<usize>,
18     //~^ ERROR can't compare
19     //~| ERROR Ord
20     f: RangeToInclusive<usize>,
21     //~^ ERROR can't compare
22     //~| ERROR Ord
23 }
24
25 fn main() {}