Add NLL tests for #46557 and #38899#47368
Conversation
Closes rust-lang#47366 Adapt the sample code from the issues into mir-borrowck/nll test cases.
|
The mentoring instructions were unclear here. It seems that we want these tests to fail compilation as they both unsoundly passed AST borrowck. |
|
@chrisvittal When you said the instructions were unclear, were you referring to the step that said that the tests should include the comment |
|
That was a mistake on my part. We expect errors! |
nikomatsakis
left a comment
There was a problem hiding this comment.
(also remove flags from other test)
|
|
||
| // Regression test for issue #38899 | ||
|
|
||
| // compile-flags:-Znll -Zborrowck=mir -Zverbose |
There was a problem hiding this comment.
can we remove the compile-flags? They should not be necessary. feature(nll) should suffice.
|
@bors r+ |
|
📌 Commit e14720b has been approved by |
Add NLL tests for rust-lang#46557 and rust-lang#38899 This adapts the sample code from the two issues into test code. Closes rust-lang#46557 Closes rust-lang#38899 r? @nikomatsakis
This adapts the sample code from the two issues into test code.
Closes #46557
Closes #38899
r? @nikomatsakis