2024-02-16 14:02:50 -06:00
|
|
|
//@ run-pass
|
|
|
|
//@ compile-flags:-Zmir-opt-level=3
|
2020-10-04 09:40:06 -05:00
|
|
|
|
2020-11-18 22:36:55 -06:00
|
|
|
// Previously ICEd because we did not normalize during inlining,
|
|
|
|
// see https://github.com/rust-lang/rust/pull/77306 for more discussion.
|
|
|
|
|
2020-10-04 09:40:06 -05:00
|
|
|
pub fn write() {
|
|
|
|
create()()
|
|
|
|
}
|
|
|
|
|
|
|
|
pub fn create() -> impl FnOnce() {
|
|
|
|
|| ()
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
write();
|
|
|
|
}
|