fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #72883 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum49cae55760d

1.44.0
6.2 KiB174 linesraw
1error[E0658]: or-patterns syntax is experimental
2  --> $DIR/feature-gate-or_patterns.rs:5:14
3   |
4LL |         Some(0 | 1 | 2) => {}
5   |              ^^^^^^^^^
6   |
7   = note: see issue #54883 <https://github.com/rust-lang/rust/issues/54883> for more information
8   = help: add `#![feature(or_patterns)]` to the crate attributes to enable
9
10error[E0658]: or-patterns syntax is experimental
11  --> $DIR/feature-gate-or_patterns.rs:28:11
12   |
13LL |     let | A | B;
14   |           ^^^^^
15   |
16   = note: see issue #54883 <https://github.com/rust-lang/rust/issues/54883> for more information
17   = help: add `#![feature(or_patterns)]` to the crate attributes to enable
18
19error[E0658]: or-patterns syntax is experimental
20  --> $DIR/feature-gate-or_patterns.rs:29:9
21   |
22LL |     let A | B;
23   |         ^^^^^
24   |
25   = note: see issue #54883 <https://github.com/rust-lang/rust/issues/54883> for more information
26   = help: add `#![feature(or_patterns)]` to the crate attributes to enable
27
28error[E0658]: or-patterns syntax is experimental
29  --> $DIR/feature-gate-or_patterns.rs:30:11
30   |
31LL |     for | A | B in 0 {}
32   |           ^^^^^
33   |
34   = note: see issue #54883 <https://github.com/rust-lang/rust/issues/54883> for more information
35   = help: add `#![feature(or_patterns)]` to the crate attributes to enable
36
37error[E0658]: or-patterns syntax is experimental
38  --> $DIR/feature-gate-or_patterns.rs:31:9
39   |
40LL |     for A | B in 0 {}
41   |         ^^^^^
42   |
43   = note: see issue #54883 <https://github.com/rust-lang/rust/issues/54883> for more information
44   = help: add `#![feature(or_patterns)]` to the crate attributes to enable
45
46error[E0658]: or-patterns syntax is experimental
47  --> $DIR/feature-gate-or_patterns.rs:32:13
48   |
49LL |     fn fun((A | B): _) {}
50   |             ^^^^^
51   |
52   = note: see issue #54883 <https://github.com/rust-lang/rust/issues/54883> for more information
53   = help: add `#![feature(or_patterns)]` to the crate attributes to enable
54
55error[E0658]: or-patterns syntax is experimental
56  --> $DIR/feature-gate-or_patterns.rs:33:15
57   |
58LL |     let _ = |(A | B): u8| ();
59   |               ^^^^^
60   |
61   = note: see issue #54883 <https://github.com/rust-lang/rust/issues/54883> for more information
62   = help: add `#![feature(or_patterns)]` to the crate attributes to enable
63
64error[E0658]: or-patterns syntax is experimental
65  --> $DIR/feature-gate-or_patterns.rs:34:10
66   |
67LL |     let (A | B);
68   |          ^^^^^
69   |
70   = note: see issue #54883 <https://github.com/rust-lang/rust/issues/54883> for more information
71   = help: add `#![feature(or_patterns)]` to the crate attributes to enable
72
73error[E0658]: or-patterns syntax is experimental
74  --> $DIR/feature-gate-or_patterns.rs:35:10
75   |
76LL |     let (A | B,);
77   |          ^^^^^
78   |
79   = note: see issue #54883 <https://github.com/rust-lang/rust/issues/54883> for more information
80   = help: add `#![feature(or_patterns)]` to the crate attributes to enable
81
82error[E0658]: or-patterns syntax is experimental
83  --> $DIR/feature-gate-or_patterns.rs:36:11
84   |
85LL |     let A(B | C);
86   |           ^^^^^
87   |
88   = note: see issue #54883 <https://github.com/rust-lang/rust/issues/54883> for more information
89   = help: add `#![feature(or_patterns)]` to the crate attributes to enable
90
91error[E0658]: or-patterns syntax is experimental
92  --> $DIR/feature-gate-or_patterns.rs:37:14
93   |
94LL |     let E::V(B | C);
95   |              ^^^^^
96   |
97   = note: see issue #54883 <https://github.com/rust-lang/rust/issues/54883> for more information
98   = help: add `#![feature(or_patterns)]` to the crate attributes to enable
99
100error[E0658]: or-patterns syntax is experimental
101  --> $DIR/feature-gate-or_patterns.rs:38:17
102   |
103LL |     let S { f1: B | C, f2 };
104   |                 ^^^^^
105   |
106   = note: see issue #54883 <https://github.com/rust-lang/rust/issues/54883> for more information
107   = help: add `#![feature(or_patterns)]` to the crate attributes to enable
108
109error[E0658]: or-patterns syntax is experimental
110  --> $DIR/feature-gate-or_patterns.rs:39:20
111   |
112LL |     let E::V { f1: B | C, f2 };
113   |                    ^^^^^
114   |
115   = note: see issue #54883 <https://github.com/rust-lang/rust/issues/54883> for more information
116   = help: add `#![feature(or_patterns)]` to the crate attributes to enable
117
118error[E0658]: or-patterns syntax is experimental
119  --> $DIR/feature-gate-or_patterns.rs:40:10
120   |
121LL |     let [A | B];
122   |          ^^^^^
123   |
124   = note: see issue #54883 <https://github.com/rust-lang/rust/issues/54883> for more information
125   = help: add `#![feature(or_patterns)]` to the crate attributes to enable
126
127error[E0658]: or-patterns syntax is experimental
128  --> $DIR/feature-gate-or_patterns.rs:16:14
129   |
130LL | accept_pat!((p | q));
131   |              ^^^^^
132   |
133   = note: see issue #54883 <https://github.com/rust-lang/rust/issues/54883> for more information
134   = help: add `#![feature(or_patterns)]` to the crate attributes to enable
135
136error[E0658]: or-patterns syntax is experimental
137  --> $DIR/feature-gate-or_patterns.rs:17:14
138   |
139LL | accept_pat!((p | q,));
140   |              ^^^^^
141   |
142   = note: see issue #54883 <https://github.com/rust-lang/rust/issues/54883> for more information
143   = help: add `#![feature(or_patterns)]` to the crate attributes to enable
144
145error[E0658]: or-patterns syntax is experimental
146  --> $DIR/feature-gate-or_patterns.rs:18:16
147   |
148LL | accept_pat!(TS(p | q));
149   |                ^^^^^
150   |
151   = note: see issue #54883 <https://github.com/rust-lang/rust/issues/54883> for more information
152   = help: add `#![feature(or_patterns)]` to the crate attributes to enable
153
154error[E0658]: or-patterns syntax is experimental
155  --> $DIR/feature-gate-or_patterns.rs:19:21
156   |
157LL | accept_pat!(NS { f: p | q });
158   |                     ^^^^^
159   |
160   = note: see issue #54883 <https://github.com/rust-lang/rust/issues/54883> for more information
161   = help: add `#![feature(or_patterns)]` to the crate attributes to enable
162
163error[E0658]: or-patterns syntax is experimental
164  --> $DIR/feature-gate-or_patterns.rs:20:14
165   |
166LL | accept_pat!([p | q]);
167   |              ^^^^^
168   |
169   = note: see issue #54883 <https://github.com/rust-lang/rust/issues/54883> for more information
170   = help: add `#![feature(or_patterns)]` to the crate attributes to enable
171
172error: aborting due to 19 previous errors
173
174For more information about this error, try `rustc --explain E0658`.