@@ -17,6 +17,7 @@ LL | 1 | -3..0 => first_or.push(x),
17
17
= note: see issue #37854 <https://github.com/rust-lang/rust/issues/37854> for more information
18
18
= help: add `#![feature(exclusive_range_pattern)]` to the crate attributes to enable
19
19
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
20
+ = help: use an inclusive range pattern, like N..=M
20
21
21
22
error[E0658]: exclusive range pattern syntax is experimental
22
23
--> $DIR/range_pat_interactions3.rs:12:18
@@ -27,6 +28,7 @@ LL | y @ (0..5 | 6) => or_two.push(y),
27
28
= note: see issue #37854 <https://github.com/rust-lang/rust/issues/37854> for more information
28
29
= help: add `#![feature(exclusive_range_pattern)]` to the crate attributes to enable
29
30
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
31
+ = help: use an inclusive range pattern, like N..=M
30
32
31
33
error[E0658]: exclusive range pattern syntax is experimental
32
34
--> $DIR/range_pat_interactions3.rs:14:17
@@ -37,6 +39,7 @@ LL | y @ 0..const { 5 + 1 } => assert_eq!(y, 5),
37
39
= note: see issue #37854 <https://github.com/rust-lang/rust/issues/37854> for more information
38
40
= help: add `#![feature(exclusive_range_pattern)]` to the crate attributes to enable
39
41
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
42
+ = help: use an inclusive range pattern, like N..=M
40
43
41
44
error[E0658]: exclusive range pattern syntax is experimental
42
45
--> $DIR/range_pat_interactions3.rs:18:17
@@ -47,6 +50,7 @@ LL | y @ ..-7 => assert_eq!(y, -8),
47
50
= note: see issue #37854 <https://github.com/rust-lang/rust/issues/37854> for more information
48
51
= help: add `#![feature(exclusive_range_pattern)]` to the crate attributes to enable
49
52
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
53
+ = help: use an inclusive range pattern, like N..=M
50
54
51
55
error: aborting due to 5 previous errors
52
56
0 commit comments