]> git.lizzy.rs Git - rust.git/blob - tests/ui/half-open-range-patterns/range_pat_interactions3.stderr
Rollup merge of #106766 - GuillaumeGomez:rm-stripper-dead-code, r=notriddle
[rust.git] / tests / ui / half-open-range-patterns / range_pat_interactions3.stderr
1 error[E0658]: inline-const in pattern position is experimental
2   --> $DIR/range_pat_interactions3.rs:14:20
3    |
4 LL |             y @ 0..const { 5 + 1 } => assert_eq!(y, 5),
5    |                    ^^^^^
6    |
7    = note: see issue #76001 <https://github.com/rust-lang/rust/issues/76001> for more information
8    = help: add `#![feature(inline_const_pat)]` to the crate attributes to enable
9
10 error[E0658]: exclusive range pattern syntax is experimental
11   --> $DIR/range_pat_interactions3.rs:10:17
12    |
13 LL |             1 | -3..0 => first_or.push(x),
14    |                 ^^^^^
15    |
16    = note: see issue #37854 <https://github.com/rust-lang/rust/issues/37854> for more information
17    = help: add `#![feature(exclusive_range_pattern)]` to the crate attributes to enable
18
19 error[E0658]: exclusive range pattern syntax is experimental
20   --> $DIR/range_pat_interactions3.rs:12:18
21    |
22 LL |             y @ (0..5 | 6) => or_two.push(y),
23    |                  ^^^^
24    |
25    = note: see issue #37854 <https://github.com/rust-lang/rust/issues/37854> for more information
26    = help: add `#![feature(exclusive_range_pattern)]` to the crate attributes to enable
27
28 error[E0658]: exclusive range pattern syntax is experimental
29   --> $DIR/range_pat_interactions3.rs:14:17
30    |
31 LL |             y @ 0..const { 5 + 1 } => assert_eq!(y, 5),
32    |                 ^^^^^^^^^^^^^^^^^^
33    |
34    = note: see issue #37854 <https://github.com/rust-lang/rust/issues/37854> for more information
35    = help: add `#![feature(exclusive_range_pattern)]` to the crate attributes to enable
36
37 error[E0658]: exclusive range pattern syntax is experimental
38   --> $DIR/range_pat_interactions3.rs:18:17
39    |
40 LL |             y @ ..-7 => assert_eq!(y, -8),
41    |                 ^^^^
42    |
43    = note: see issue #37854 <https://github.com/rust-lang/rust/issues/37854> for more information
44    = help: add `#![feature(exclusive_range_pattern)]` to the crate attributes to enable
45
46 error: aborting due to 5 previous errors
47
48 For more information about this error, try `rustc --explain E0658`.