2018-08-08 07:28:26 -05:00
|
|
|
error[E0005]: refutable pattern in function argument: `(_, _)` not covered
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/refutable-pattern-errors.rs:1:9
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
|
LL | fn func((1, (Some(1), 2..=3)): (isize, (Option<isize>, isize))) { }
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^ pattern `(_, _)` not covered
|
|
|
|
|
2019-07-06 21:41:12 -05:00
|
|
|
error[E0005]: refutable pattern in local binding: `(std::i32::MIN..=0i32, _)` not covered
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/refutable-pattern-errors.rs:5:9
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
|
LL | let (1, (Some(1), 2..=3)) = (1, (None, 2));
|
2019-07-06 21:41:12 -05:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^ pattern `(std::i32::MIN..=0i32, _)` not covered
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0005`.
|