Migrate pattern matching
This commit is contained in:
parent
ef33072890
commit
31c20210b9
35 changed files with 417 additions and 326 deletions
|
@ -8,7 +8,8 @@ enum Helper<T, U> {
|
|||
|
||||
fn transmute<T, U>(t: T) -> U {
|
||||
let Helper::U(u) = Helper::T(t, []);
|
||||
//~^ ERROR refutable pattern in local binding: `Helper::T(_, _)` not covered
|
||||
//~^ ERROR refutable pattern in local binding
|
||||
//~| `Helper::T(_, _)` not covered
|
||||
u
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue