Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
restructure issue-78262 to test polonius
This test is ignored in the NLL compare-mode and manually checks the NLL output. This makes the polonius compare-mode fail, even though the output is the same as NLL.
- Loading branch information
Showing
4 changed files
with
20 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
error[E0521]: borrowed data escapes outside of closure | ||
--> $DIR/issue-78262.rs:14:26 | ||
| | ||
LL | let f = |x: &dyn TT| x.func(); | ||
| - ^^^^^^^^ `x` escapes the closure body here | ||
| | | ||
| `x` is a reference that is only valid in the closure body | ||
|
||
error: aborting due to previous error | ||
|
||
For more information about this error, try `rustc --explain E0521`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters