Never stop due to errors before borrow checking

This commit is contained in:
Esteban Küber 2019-04-15 12:54:18 -07:00
parent c21fbfe7e3
commit 6e723c24a8
49 changed files with 409 additions and 108 deletions

View file

@ -10,6 +10,9 @@ fn transmute<T, U>(t: T) -> U {
let Helper::U(u) = Helper::T(t, []);
//~^ ERROR refutable pattern in local binding: `T(_, _)` not covered
u
//~^ WARN use of possibly uninitialized variable: `u`
//~| WARN this error has been downgraded to a warning for backwards compatibility
//~| WARN this represents potential undefined behavior in your code and this warning will
}
fn main() {