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
2
2
--> $DIR/nested.rs:10:34
3
3
|
4
4
LL | const BAD_NESTING: pattern_type!(pattern_type!(u32 is 1..) is 0..) = todo!();
@@ -10,7 +10,7 @@ note: range patterns only support integers
10
10
LL | const BAD_NESTING: pattern_type!(pattern_type!(u32 is 1..) is 0..) = todo!();
11
11
| ^^^
12
12
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
14
14
--> $DIR/nested.rs:15:35
15
15
|
16
16
LL | const BAD_NESTING2: pattern_type!(pattern_type!(i32 is 1..) is ..=-1) = todo!();
@@ -22,7 +22,7 @@ note: range patterns only support integers
22
22
LL | const BAD_NESTING2: pattern_type!(pattern_type!(i32 is 1..) is ..=-1) = todo!();
23
23
| ^^^^^
24
24
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
26
26
--> $DIR/nested.rs:19:35
27
27
|
28
28
LL | const BAD_NESTING3: pattern_type!(pattern_type!(i32 is 1..) is ..0) = todo!();
@@ -62,27 +62,27 @@ error[E0308]: mismatched types
62
62
--> $DIR/nested.rs:10:63
63
63
|
64
64
LL | 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
66
66
|
67
- = note: expected pattern type `(u32) is 1..=u32::MAX `
67
+ = note: expected pattern type `(u32) is 1..`
68
68
found type `{integer}`
69
69
70
70
error[E0308]: mismatched types
71
71
--> $DIR/nested.rs:15:67
72
72
|
73
73
LL | 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
75
75
|
76
- = note: expected pattern type `(i32) is 1..=i32::MAX `
76
+ = note: expected pattern type `(i32) is 1..`
77
77
found type `{integer}`
78
78
79
79
error[E0308]: mismatched types
80
80
--> $DIR/nested.rs:19:66
81
81
|
82
82
LL | 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
84
84
|
85
- = note: expected pattern type `(i32) is 1..=i32::MAX `
85
+ = note: expected pattern type `(i32) is 1..`
86
86
found type `{integer}`
87
87
88
88
error[E0308]: mismatched types
0 commit comments