]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/pat-tuple-4.stderr
Rollup merge of #67005 - andrewbanchich:master, r=joshtriplett
[rust.git] / src / test / ui / parser / pat-tuple-4.stderr
1 error: `..X` range patterns are not supported
2   --> $DIR/pat-tuple-4.rs:5:10
3    |
4 LL |         (.. PAT) => {}
5    |          ^^^^^^ help: try using the minimum value for the type: `MIN..PAT`
6
7 error[E0658]: exclusive range pattern syntax is experimental
8   --> $DIR/pat-tuple-4.rs:5:10
9    |
10 LL |         (.. PAT) => {}
11    |          ^^^^^^
12    |
13    = note: for more information, see https://github.com/rust-lang/rust/issues/37854
14    = help: add `#![feature(exclusive_range_pattern)]` to the crate attributes to enable
15
16 error[E0308]: mismatched types
17   --> $DIR/pat-tuple-4.rs:11:30
18    |
19 LL | const RECOVERY_WITNESS: () = 0;
20    |                              ^ expected `()`, found integer
21
22 error: aborting due to 3 previous errors
23
24 Some errors have detailed explanations: E0308, E0658.
25 For more information about an error, try `rustc --explain E0308`.