the test(s) from issue 25579 should be ported to NLL run-pass tests #55797
Labels
E-needs-test
Call for participation: An issue has been fixed and does not reproduce, but no test has been added.
fixed-by-NLL
Bugs fixed, but only when NLL is enabled.
The work on reviewing the diagnostic differences between AST-borrowck and NLL leads me to conclude that NLL is (probably) correctly accepting the regression test we added for #25579
Namely this:
rust/src/test/ui/issues/issue-25579.rs
Lines 16 to 28 in 653da4f
We should make the original test be AST-borrowck only (via
-Z borrowck=ast
) and make a new version of the test (and perhaps the original code from the description on #25579) that is NLL-only and goes in run-pass.The text was updated successfully, but these errors were encountered: