summary refs log tree commit diff
path: root/src/test/ui/parser/pat-tuple-5.stderr
blob: 3579a2c4e095154c05b0d94787ecbbc2ffb71379 (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
26
27
28
29
30
error: `X..` range patterns are not supported
  --> $DIR/pat-tuple-5.rs:5:10
   |
LL |         (PAT ..) => {}
   |          ^^^^^^ help: try using the maximum value for the type: `PAT..MAX`

error[E0658]: exclusive range pattern syntax is experimental
  --> $DIR/pat-tuple-5.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-5.rs:5:10
   |
LL |     match (0, 1) {
   |           ------ this match expression has type `({integer}, {integer})`
LL |         (PAT ..) => {}
   |          ^^^^^^ expected tuple, found `u8`
   |
   = note: expected tuple `({integer}, {integer})`
               found type `u8`

error: aborting due to 3 previous errors

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