summary refs log tree commit diff
path: root/src/test/ui/parser/pat-tuple-4.stderr
blob: 6c64290e144c20638c38567baa7531a8c72c2643 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
error: `..X` range patterns are not supported
  --> $DIR/pat-tuple-4.rs:5:10
   |
LL |         (.. PAT) => {}
   |          ^^^^^^ help: try using the minimum value for the type: `MIN..PAT`

error[E0658]: exclusive range pattern syntax is experimental
  --> $DIR/pat-tuple-4.rs:5:10
   |
LL |         (.. PAT) => {}
   |          ^^^^^^
   |
   = note: for more information, see https://github.com/rust-lang/rust/issues/37854
   = help: add `#![feature(exclusive_range_pattern)]` to the crate attributes to enable

error[E0308]: mismatched types
  --> $DIR/pat-tuple-4.rs:11:30
   |
LL | const RECOVERY_WITNESS: () = 0;
   |                              ^ expected `()`, found integer

error: aborting due to 3 previous errors

Some errors have detailed explanations: E0308, E0658.
For more information about an error, try `rustc --explain E0308`.