@@ -2,18 +2,18 @@ error[E0308]: mismatched types
2
2
--> $DIR/nested.rs:10:63
3
3
|
4
4
LL | const BAD_NESTING: pattern_type!(pattern_type!(u32 is 1..) is 0..) = todo!();
5
- | ^ expected `(u32) is 1..=u32::MAX `, found integer
5
+ | ^ expected `(u32) is 1..`, found integer
6
6
|
7
- = note: expected pattern type `(u32) is 1..=u32::MAX `
7
+ = note: expected pattern type `(u32) is 1..`
8
8
found type `{integer}`
9
9
10
- error[E0277]: `(u32) is 1..=u32::MAX ` is not a valid base type for range patterns
10
+ error[E0277]: `(u32) is 1..` is not a valid base type for range patterns
11
11
--> $DIR/nested.rs:10:34
12
12
|
13
13
LL | const BAD_NESTING: pattern_type!(pattern_type!(u32 is 1..) is 0..) = todo!();
14
14
| ^^^^^^^^^^^^^^^^^^^^^^^^^ only integer types and `char` are supported
15
15
|
16
- = help: the trait `core::pat::RangePattern` is not implemented for `(u32) is 1..=u32::MAX `
16
+ = help: the trait `core::pat::RangePattern` is not implemented for `(u32) is 1..`
17
17
= help: the following other types implement trait `core::pat::RangePattern`:
18
18
char
19
19
i128
@@ -25,13 +25,13 @@ LL | const BAD_NESTING: pattern_type!(pattern_type!(u32 is 1..) is 0..) = todo!(
25
25
u128
26
26
and 5 others
27
27
28
- error[E0277]: `(i32) is 1..=i32::MAX ` is not a valid base type for range patterns
28
+ error[E0277]: `(i32) is 1..` is not a valid base type for range patterns
29
29
--> $DIR/nested.rs:15:35
30
30
|
31
31
LL | const BAD_NESTING2: pattern_type!(pattern_type!(i32 is 1..) is ..=-1) = todo!();
32
32
| ^^^^^^^^^^^^^^^^^^^^^^^^^ only integer types and `char` are supported
33
33
|
34
- = help: the trait `core::pat::RangePattern` is not implemented for `(i32) is 1..=i32::MAX `
34
+ = help: the trait `core::pat::RangePattern` is not implemented for `(i32) is 1..`
35
35
= help: the following other types implement trait `core::pat::RangePattern`:
36
36
char
37
37
i128
@@ -47,18 +47,18 @@ error[E0308]: mismatched types
47
47
--> $DIR/nested.rs:15:67
48
48
|
49
49
LL | const BAD_NESTING2: pattern_type!(pattern_type!(i32 is 1..) is ..=-1) = todo!();
50
- | ^^ expected `(i32) is 1..=i32::MAX `, found integer
50
+ | ^^ expected `(i32) is 1..`, found integer
51
51
|
52
- = note: expected pattern type `(i32) is 1..=i32::MAX `
52
+ = note: expected pattern type `(i32) is 1..`
53
53
found type `{integer}`
54
54
55
- error[E0277]: `(i32) is 1..=i32::MAX ` is not a valid base type for range patterns
55
+ error[E0277]: `(i32) is 1..` is not a valid base type for range patterns
56
56
--> $DIR/nested.rs:19:35
57
57
|
58
58
LL | const BAD_NESTING3: pattern_type!(pattern_type!(i32 is 1..) is ..0) = todo!();
59
59
| ^^^^^^^^^^^^^^^^^^^^^^^^^ only integer types and `char` are supported
60
60
|
61
- = help: the trait `core::pat::RangePattern` is not implemented for `(i32) is 1..=i32::MAX `
61
+ = help: the trait `core::pat::RangePattern` is not implemented for `(i32) is 1..`
62
62
= help: the following other types implement trait `core::pat::RangePattern`:
63
63
char
64
64
i128
@@ -76,10 +76,10 @@ error[E0308]: mismatched types
76
76
LL | const BAD_NESTING3: pattern_type!(pattern_type!(i32 is 1..) is ..0) = todo!();
77
77
| ^
78
78
| |
79
- | expected `(i32) is 1..=i32::MAX `, found integer
79
+ | expected `(i32) is 1..`, found integer
80
80
| arguments to this function are incorrect
81
81
|
82
- = note: expected pattern type `(i32) is 1..=i32::MAX `
82
+ = note: expected pattern type `(i32) is 1..`
83
83
found type `{integer}`
84
84
help: the return type of this call is `{integer}` due to the type of the argument passed
85
85
--> $DIR/nested.rs:19:66
@@ -89,13 +89,13 @@ LL | const BAD_NESTING3: pattern_type!(pattern_type!(i32 is 1..) is ..0) = todo!
89
89
note: method defined here
90
90
--> $SRC_DIR/core/src/pat.rs:LL:COL
91
91
92
- error[E0277]: `(i32) is 1..=i32::MAX ` is not a valid base type for range patterns
92
+ error[E0277]: `(i32) is 1..` is not a valid base type for range patterns
93
93
--> $DIR/nested.rs:19:66
94
94
|
95
95
LL | const BAD_NESTING3: pattern_type!(pattern_type!(i32 is 1..) is ..0) = todo!();
96
96
| ^ only integer types and `char` are supported
97
97
|
98
- = help: the trait `core::pat::RangePattern` is not implemented for `(i32) is 1..=i32::MAX `
98
+ = help: the trait `core::pat::RangePattern` is not implemented for `(i32) is 1..`
99
99
= help: the following other types implement trait `core::pat::RangePattern`:
100
100
char
101
101
i128
0 commit comments