rust/src/test/ui/issues/issue-4968.stderr

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

21 lines
688 B
Plaintext
Raw Normal View History

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