2018-07-15 16:11:54 -05:00
|
|
|
error[E0308]: mismatched types
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/issue-4968.rs:5:16
|
2018-07-15 16:11:54 -05:00
|
|
|
|
|
2019-12-30 17:46:31 -06:00
|
|
|
LL | const A: (isize,isize) = (4,2);
|
2022-02-13 09:27:59 -06:00
|
|
|
| ---------------------- constant defined here
|
2019-12-30 17:46:31 -06:00
|
|
|
LL | fn main() {
|
2018-07-15 16:11:54 -05:00
|
|
|
LL | match 42 { A => () }
|
2021-12-15 17:16:21 -06:00
|
|
|
| -- ^
|
|
|
|
| | |
|
2023-01-02 20:00:33 -06:00
|
|
|
| | expected integer, found `(isize, isize)`
|
2021-12-15 17:16:21 -06:00
|
|
|
| | `A` is interpreted as a constant, not a new binding
|
|
|
|
| | help: introduce a new binding instead: `other_a`
|
|
|
|
| this expression has type `{integer}`
|
2018-07-15 16:11:54 -05:00
|
|
|
|
|
|
|
|
= note: expected type `{integer}`
|
2019-11-13 16:16:56 -06:00
|
|
|
found tuple `(isize, isize)`
|
2018-07-15 16:11:54 -05:00
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0308`.
|