mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 15:23:46 +00:00
19 lines
277 B
Rust
19 lines
277 B
Rust
// ignore-wasm32-bare compiled with panic=abort by default
|
|
|
|
// EMIT_MIR cycle.f.Inline.diff
|
|
#[inline(always)]
|
|
fn f(g: impl Fn()) {
|
|
g();
|
|
}
|
|
|
|
// EMIT_MIR cycle.g.Inline.diff
|
|
#[inline(always)]
|
|
fn g() {
|
|
f(main);
|
|
}
|
|
|
|
// EMIT_MIR cycle.main.Inline.diff
|
|
fn main() {
|
|
f(g);
|
|
}
|