rust/tests/ui/issues/issue-4968.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

21 lines
690 B
Plaintext
Raw Normal View History

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
|
LL | const A: (isize,isize) = (4,2);
2022-02-13 15:27:59 +00:00
| ---------------------- constant defined here
LL | fn main() {
2018-07-15 21:11:54 +00:00
LL | match 42 { A => () }
| -- ^
| | |
| | expected integer, found `(isize, isize)`
| | `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}`
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`.