blob: e47fe482b3cbefc3540dd364b8791385be7a8a3d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
//@ run-pass
//@ compile-flags:-Zmir-opt-level=3
// 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();
}
|