1- error: `(u32) is 1..=u32::MAX ` is not a valid base type for range patterns
1+ error: `(u32) is 1..` is not a valid base type for range patterns
22 --> $DIR/nested.rs:10:34
33 |
44LL | const BAD_NESTING: pattern_type!(pattern_type!(u32 is 1..) is 0..) = todo!();
@@ -10,7 +10,7 @@ note: range patterns only support integers
1010LL | const BAD_NESTING: pattern_type!(pattern_type!(u32 is 1..) is 0..) = todo!();
1111 | ^^^
1212
13- error: `(i32) is 1..=i32::MAX ` is not a valid base type for range patterns
13+ error: `(i32) is 1..` is not a valid base type for range patterns
1414 --> $DIR/nested.rs:15:35
1515 |
1616LL | const BAD_NESTING2: pattern_type!(pattern_type!(i32 is 1..) is ..=-1) = todo!();
@@ -22,7 +22,7 @@ note: range patterns only support integers
2222LL | const BAD_NESTING2: pattern_type!(pattern_type!(i32 is 1..) is ..=-1) = todo!();
2323 | ^^^^^
2424
25- error: `(i32) is 1..=i32::MAX ` is not a valid base type for range patterns
25+ error: `(i32) is 1..` is not a valid base type for range patterns
2626 --> $DIR/nested.rs:19:35
2727 |
2828LL | const BAD_NESTING3: pattern_type!(pattern_type!(i32 is 1..) is ..0) = todo!();
@@ -62,27 +62,27 @@ error[E0308]: mismatched types
6262 --> $DIR/nested.rs:10:63
6363 |
6464LL | const BAD_NESTING: pattern_type!(pattern_type!(u32 is 1..) is 0..) = todo!();
65- | ^ expected `(u32) is 1..=u32::MAX `, found integer
65+ | ^ expected `(u32) is 1..`, found integer
6666 |
67- = note: expected pattern type `(u32) is 1..=u32::MAX `
67+ = note: expected pattern type `(u32) is 1..`
6868 found type `{integer}`
6969
7070error[E0308]: mismatched types
7171 --> $DIR/nested.rs:15:67
7272 |
7373LL | const BAD_NESTING2: pattern_type!(pattern_type!(i32 is 1..) is ..=-1) = todo!();
74- | ^^ expected `(i32) is 1..=i32::MAX `, found integer
74+ | ^^ expected `(i32) is 1..`, found integer
7575 |
76- = note: expected pattern type `(i32) is 1..=i32::MAX `
76+ = note: expected pattern type `(i32) is 1..`
7777 found type `{integer}`
7878
7979error[E0308]: mismatched types
8080 --> $DIR/nested.rs:19:66
8181 |
8282LL | const BAD_NESTING3: pattern_type!(pattern_type!(i32 is 1..) is ..0) = todo!();
83- | ^ expected `(i32) is 1..=i32::MAX `, found integer
83+ | ^ expected `(i32) is 1..`, found integer
8484 |
85- = note: expected pattern type `(i32) is 1..=i32::MAX `
85+ = note: expected pattern type `(i32) is 1..`
8686 found type `{integer}`
8787
8888error[E0308]: mismatched types
0 commit comments