normalize substs during inlining
This commit is contained in:
parent
9c302f55bd
commit
f0487cee74
3 changed files with 30 additions and 6 deletions
17
src/test/ui/mir/mir-inlining/ice-issue-77306.rs
Normal file
17
src/test/ui/mir/mir-inlining/ice-issue-77306.rs
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
// run-pass
|
||||
// compile-flags:-Zmir-opt-level=2
|
||||
|
||||
// Previously ICEd because we did not normalize during inlining,
|
||||
// see https://github.com/rust-lang/rust/pull/77306 for more discussion.
|
||||
|
||||
pub fn write() {
|
||||
create()()
|
||||
}
|
||||
|
||||
pub fn create() -> impl FnOnce() {
|
||||
|| ()
|
||||
}
|
||||
|
||||
fn main() {
|
||||
write();
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue