|  | 
|  | 1 | +error: `(u32) is 1..=` is not a valid base type for range patterns | 
|  | 2 | +  --> $DIR/nested.rs:10:34 | 
|  | 3 | +   | | 
|  | 4 | +LL | const BAD_NESTING: pattern_type!(pattern_type!(u32 is 1..) is 0..) = todo!(); | 
|  | 5 | +   |                                  ^^^^^^^^^^^^^^^^^^^^^^^^^ | 
|  | 6 | +   | | 
|  | 7 | +note: range patterns only support integers | 
|  | 8 | +  --> $DIR/nested.rs:10:63 | 
|  | 9 | +   | | 
|  | 10 | +LL | const BAD_NESTING: pattern_type!(pattern_type!(u32 is 1..) is 0..) = todo!(); | 
|  | 11 | +   |                                                               ^^^ | 
|  | 12 | + | 
|  | 13 | +error: `(i32) is 1..=` is not a valid base type for range patterns | 
|  | 14 | +  --> $DIR/nested.rs:14:35 | 
|  | 15 | +   | | 
|  | 16 | +LL | const BAD_NESTING2: pattern_type!(pattern_type!(i32 is 1..) is ..=-1) = todo!(); | 
|  | 17 | +   |                                   ^^^^^^^^^^^^^^^^^^^^^^^^^ | 
|  | 18 | +   | | 
|  | 19 | +note: range patterns only support integers | 
|  | 20 | +  --> $DIR/nested.rs:14:64 | 
|  | 21 | +   | | 
|  | 22 | +LL | const BAD_NESTING2: pattern_type!(pattern_type!(i32 is 1..) is ..=-1) = todo!(); | 
|  | 23 | +   |                                                                ^^^^^ | 
|  | 24 | + | 
|  | 25 | +error: `(i32) is 1..=` is not a valid base type for range patterns | 
|  | 26 | +  --> $DIR/nested.rs:17:35 | 
|  | 27 | +   | | 
|  | 28 | +LL | const BAD_NESTING3: pattern_type!(pattern_type!(i32 is 1..) is ..0) = todo!(); | 
|  | 29 | +   |                                   ^^^^^^^^^^^^^^^^^^^^^^^^^ | 
|  | 30 | +   | | 
|  | 31 | +note: range patterns only support integers | 
|  | 32 | +  --> $DIR/nested.rs:17:64 | 
|  | 33 | +   | | 
|  | 34 | +LL | const BAD_NESTING3: pattern_type!(pattern_type!(i32 is 1..) is ..0) = todo!(); | 
|  | 35 | +   |                                                                ^^^ | 
|  | 36 | + | 
|  | 37 | +error: `()` is not a valid base type for range patterns | 
|  | 38 | +  --> $DIR/nested.rs:20:35 | 
|  | 39 | +   | | 
|  | 40 | +LL | const BAD_NESTING4: pattern_type!(() is ..0) = todo!(); | 
|  | 41 | +   |                                   ^^ | 
|  | 42 | +   | | 
|  | 43 | +note: range patterns only support integers | 
|  | 44 | +  --> $DIR/nested.rs:20:41 | 
|  | 45 | +   | | 
|  | 46 | +LL | const BAD_NESTING4: pattern_type!(() is ..0) = todo!(); | 
|  | 47 | +   |                                         ^^^ | 
|  | 48 | + | 
|  | 49 | +error: `f32` is not a valid base type for range patterns | 
|  | 50 | +  --> $DIR/nested.rs:23:35 | 
|  | 51 | +   | | 
|  | 52 | +LL | const BAD_NESTING5: pattern_type!(f32 is 1.0 .. 2.0) = todo!(); | 
|  | 53 | +   |                                   ^^^ | 
|  | 54 | +   | | 
|  | 55 | +note: range patterns only support integers | 
|  | 56 | +  --> $DIR/nested.rs:23:42 | 
|  | 57 | +   | | 
|  | 58 | +LL | const BAD_NESTING5: pattern_type!(f32 is 1.0 .. 2.0) = todo!(); | 
|  | 59 | +   |                                          ^^^^^^^^^^ | 
|  | 60 | + | 
|  | 61 | +error: aborting due to 5 previous errors | 
|  | 62 | + | 
0 commit comments