2018-07-15 21:11:54 +00:00
|
|
|
error[E0308]: mismatched types
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/issue-4968.rs:5:16
|
2018-07-15 21:11:54 +00:00
|
|
|
|
|
2019-12-30 23:46:31 +00:00
|
|
|
LL | const A: (isize,isize) = (4,2);
|
2022-02-13 15:27:59 +00:00
|
|
|
| ---------------------- constant defined here
|
2019-12-30 23:46:31 +00:00
|
|
|
LL | fn main() {
|
2018-07-15 21:11:54 +00:00
|
|
|
LL | match 42 { A => () }
|
2021-12-15 23:16:21 +00:00
|
|
|
| -- ^
|
|
|
|
| | |
|
2023-01-03 02:00:33 +00:00
|
|
|
| | expected integer, found `(isize, isize)`
|
2021-12-15 23:16:21 +00: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 21:11:54 +00:00
|
|
|
|
|
|
|
|
= note: expected type `{integer}`
|
2019-11-13 22:16:56 +00:00
|
|
|
found tuple `(isize, isize)`
|
2018-07-15 21:11:54 +00:00
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0308`.
|