]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-4968.stderr
Require Drop impls to have the same constness on its bounds as the bounds on the...
[rust.git] / src / test / ui / issues / issue-4968.stderr
1 error[E0308]: mismatched types
2   --> $DIR/issue-4968.rs:5:16
3    |
4 LL | const A: (isize,isize) = (4,2);
5    | ---------------------- constant defined here
6 LL | fn main() {
7 LL |     match 42 { A => () }
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}`
14    |
15    = note: expected type `{integer}`
16              found tuple `(isize, isize)`
17
18 error: aborting due to previous error
19
20 For more information about this error, try `rustc --explain E0308`.