]> git.lizzy.rs Git - rust.git/blob - src/test/mir-opt/fn_ptr_shim.core.ops-function-Fn-call.AddMovesForPackedDrops.before.mir
Add #[const_trait] where needed in tests.
[rust.git] / src / test / mir-opt / fn_ptr_shim.core.ops-function-Fn-call.AddMovesForPackedDrops.before.mir
1 // MIR for `std::ops::Fn::call` before AddMovesForPackedDrops
2
3 fn std::ops::Fn::call(_1: *const fn(), _2: ()) -> <fn() as FnOnce<()>>::Output {
4     let mut _0: <fn() as std::ops::FnOnce<()>>::Output; // return place in scope 0 at $SRC_DIR/core/src/ops/function.rs:+0:5: +0:67
5
6     bb0: {
7         _0 = move (*_1)() -> bb1;        // scope 0 at $SRC_DIR/core/src/ops/function.rs:+0:5: +0:67
8     }
9
10     bb1: {
11         return;                          // scope 0 at $SRC_DIR/core/src/ops/function.rs:+0:5: +0:67
12     }
13 }