forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rollup merge of rust-lang#65775 - matthewjasper:reempty, r=pnkfelix
Fix more `ReEmpty` ICEs closes rust-lang#65553 r? @pnkfelix
- Loading branch information
Showing
3 changed files
with
26 additions
and
2 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,18 @@ | ||
// Regression test for #65553 | ||
// | ||
// `D::Error:` is lowered to `D::Error: ReEmpty` - check that we don't ICE in | ||
// NLL for the unexpected region. | ||
|
||
// check-pass | ||
|
||
trait Deserializer { | ||
type Error; | ||
} | ||
|
||
fn d1<D: Deserializer>() where D::Error: {} | ||
|
||
fn d2<D: Deserializer>() { | ||
d1::<D>(); | ||
} | ||
|
||
fn main() {} |
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