]> git.proxmox.com Git - rustc.git/blame - src/test/ui/issues/issue-4968.stderr
New upstream version 1.61.0+dfsg1
[rustc.git] / src / test / ui / issues / issue-4968.stderr
CommitLineData
8faf50e0 1error[E0308]: mismatched types
0731742a 2 --> $DIR/issue-4968.rs:5:16
8faf50e0 3 |
74b04a01
XL
4LL | const A: (isize,isize) = (4,2);
5 | ------------------------------- constant defined here
6LL | fn main() {
8faf50e0 7LL | match 42 { A => () }
ee023bcb
FG
8 | -- ^
9 | | |
10 | | expected integer, found tuple
11 | | `A` is interpreted as a constant, not a new binding
12 | | help: introduce a new binding instead: `other_a`
13 | this expression has type `{integer}`
8faf50e0
XL
14 |
15 = note: expected type `{integer}`
60c5eb7d 16 found tuple `(isize, isize)`
8faf50e0
XL
17
18error: aborting due to previous error
19
20For more information about this error, try `rustc --explain E0308`.