rust/src/test/ui/or-pattern-mismatch.stderr

13 lines
442 B
Plaintext
Raw Normal View History

2018-08-08 07:28:26 -05:00
error[E0308]: mismatched types
2018-12-25 09:56:47 -06:00
--> $DIR/or-pattern-mismatch.rs:3:68
2018-08-08 07:28:26 -05:00
|
LL | fn main() { match Blah::A(1, 1, 2) { Blah::A(_, x, y) | Blah::B(x, y) => { } } }
2018-08-08 07:28:26 -05:00
| ^ expected usize, found isize
|
= note: expected type `usize`
found type `isize`
error: aborting due to previous error
For more information about this error, try `rustc --explain E0308`.