Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Don't try to lower ReEmpty in NLL
- Loading branch information
1 parent
c57ed9d
commit 2751b86
Showing
2 changed files
with
18 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
// Regression test for #61315 | ||
// | ||
// `dyn T:` is lowered to `dyn T: ReEmpty` - check that we don't ICE in NLL for | ||
// the unexpected region. | ||
|
||
// compile-pass | ||
|
||
trait T {} | ||
fn f() where dyn T: {} | ||
|
||
fn main() {} |