mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-02 07:22:42 +00:00
18 lines
298 B
Rust
18 lines
298 B
Rust
//@ 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();
|
|
}
|