-
Notifications
You must be signed in to change notification settings - Fork 12.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NLL injects type infer failures in presence of subsequently-masked lifetime errors #51172
Comments
Hmm. We actually do try to give the nicer errors, but for whatever reason the heuristics we use to decide what is the "main error" to report are failing here. Seems like an interesting case to dig into a bit. |
But I'll mark it as a sub-issue of #51169 |
OK so -- the problem here I think is the TEST. In particular, the |
…, r=pnkfelix remove `let x = baz` which was obscuring the real error fixes rust-lang#51172
…, r=pnkfelix remove `let x = baz` which was obscuring the real error fixes rust-lang#51172
…, r=pnkfelix remove `let x = baz` which was obscuring the real error fixes rust-lang#51172
…, r=pnkfelix remove `let x = baz` which was obscuring the real error fixes rust-lang#51172
…, r=pnkfelix remove `let x = baz` which was obscuring the real error fixes rust-lang#51172
…, r=pnkfelix remove `let x = baz` which was obscuring the real error fixes rust-lang#51172
…, r=pnkfelix remove `let x = baz` which was obscuring the real error fixes rust-lang#51172
Look at https://github.com/rust-lang/rust/blob/master/src/test/ui/lifetime-errors/ex2a-push-one-existing-name-early-bound.rs
its expected error output is (https://github.com/rust-lang/rust/blob/master/src/test/ui/lifetime-errors/ex2a-push-one-existing-name-early-bound.stderr)
but under NLL it yields (https://github.com/rust-lang/rust/blob/master/src/test/ui/lifetime-errors/ex2a-push-one-existing-name-early-bound.nll.stderr):
The latter is amazingly different from the former.
The text was updated successfully, but these errors were encountered: