]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-7867.stderr
Require Drop impls to have the same constness on its bounds as the bounds on the...
[rust.git] / src / test / ui / issues / issue-7867.stderr
1 error[E0308]: mismatched types
2   --> $DIR/issue-7867.rs:7:9
3    |
4 LL | enum A { B, C }
5    |          - unit variant defined here
6 ...
7 LL |     match (true, false) {
8    |           ------------- this expression has type `(bool, bool)`
9 LL |         A::B => (),
10    |         ^^^^ expected tuple, found enum `A`
11    |
12    = note: expected tuple `(bool, bool)`
13                found enum `A`
14
15 error: aborting due to previous error
16
17 For more information about this error, try `rustc --explain E0308`.