Merged migrated compile-fail tests and ui tests. Fixes #46841.
This commit is contained in:
parent
3e0a407988
commit
3fc7ab2373
6584 changed files with 886 additions and 764 deletions
15
src/test/ui/refutable-pattern-errors.stderr
Normal file
15
src/test/ui/refutable-pattern-errors.stderr
Normal file
|
@ -0,0 +1,15 @@
|
|||
error[E0005]: refutable pattern in function argument: `(_, _)` not covered
|
||||
--> $DIR/refutable-pattern-errors.rs:12:9
|
||||
|
|
||||
LL | fn func((1, (Some(1), 2..=3)): (isize, (Option<isize>, isize))) { }
|
||||
| ^^^^^^^^^^^^^^^^^^^^^ pattern `(_, _)` not covered
|
||||
|
||||
error[E0005]: refutable pattern in local binding: `(_, _)` not covered
|
||||
--> $DIR/refutable-pattern-errors.rs:16:9
|
||||
|
|
||||
LL | let (1, (Some(1), 2..=3)) = (1, (None, 2));
|
||||
| ^^^^^^^^^^^^^^^^^^^^^ pattern `(_, _)` not covered
|
||||
|
||||
error: aborting due to 2 previous errors
|
||||
|
||||
For more information about this error, try `rustc --explain E0005`.
|
Loading…
Add table
Add a link
Reference in a new issue