@@ -2,18 +2,18 @@ error[E0308]: mismatched types
22 --> $DIR/nested.rs:10:63
33 |
44LL | 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
66 |
7- = note: expected pattern type `(u32) is 1..=u32::MAX `
7+ = note: expected pattern type `(u32) is 1..`
88 found type `{integer}`
99
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
1111 --> $DIR/nested.rs:10:34
1212 |
1313LL | const BAD_NESTING: pattern_type!(pattern_type!(u32 is 1..) is 0..) = todo!();
1414 | ^^^^^^^^^^^^^^^^^^^^^^^^^ only integer types and `char` are supported
1515 |
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..`
1717 = help: the following other types implement trait `core::pat::RangePattern`:
1818 char
1919 i128
@@ -25,13 +25,13 @@ LL | const BAD_NESTING: pattern_type!(pattern_type!(u32 is 1..) is 0..) = todo!(
2525 u128
2626 and 5 others
2727
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
2929 --> $DIR/nested.rs:15:35
3030 |
3131LL | const BAD_NESTING2: pattern_type!(pattern_type!(i32 is 1..) is ..=-1) = todo!();
3232 | ^^^^^^^^^^^^^^^^^^^^^^^^^ only integer types and `char` are supported
3333 |
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..`
3535 = help: the following other types implement trait `core::pat::RangePattern`:
3636 char
3737 i128
@@ -47,18 +47,18 @@ error[E0308]: mismatched types
4747 --> $DIR/nested.rs:15:67
4848 |
4949LL | 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
5151 |
52- = note: expected pattern type `(i32) is 1..=i32::MAX `
52+ = note: expected pattern type `(i32) is 1..`
5353 found type `{integer}`
5454
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
5656 --> $DIR/nested.rs:19:35
5757 |
5858LL | const BAD_NESTING3: pattern_type!(pattern_type!(i32 is 1..) is ..0) = todo!();
5959 | ^^^^^^^^^^^^^^^^^^^^^^^^^ only integer types and `char` are supported
6060 |
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..`
6262 = help: the following other types implement trait `core::pat::RangePattern`:
6363 char
6464 i128
@@ -76,10 +76,10 @@ error[E0308]: mismatched types
7676LL | const BAD_NESTING3: pattern_type!(pattern_type!(i32 is 1..) is ..0) = todo!();
7777 | ^
7878 | |
79- | expected `(i32) is 1..=i32::MAX `, found integer
79+ | expected `(i32) is 1..`, found integer
8080 | arguments to this function are incorrect
8181 |
82- = note: expected pattern type `(i32) is 1..=i32::MAX `
82+ = note: expected pattern type `(i32) is 1..`
8383 found type `{integer}`
8484help: the return type of this call is `{integer}` due to the type of the argument passed
8585 --> $DIR/nested.rs:19:66
@@ -89,13 +89,13 @@ LL | const BAD_NESTING3: pattern_type!(pattern_type!(i32 is 1..) is ..0) = todo!
8989note: method defined here
9090 --> $SRC_DIR/core/src/pat.rs:LL:COL
9191
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
9393 --> $DIR/nested.rs:19:66
9494 |
9595LL | const BAD_NESTING3: pattern_type!(pattern_type!(i32 is 1..) is ..0) = todo!();
9696 | ^ only integer types and `char` are supported
9797 |
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..`
9999 = help: the following other types implement trait `core::pat::RangePattern`:
100100 char
101101 i128
0 commit comments