1 // ignore-wasm32-bare compiled with panic=abort by default
3 // Test that after the call to `std::mem::drop` we do not generate a
4 // MIR drop of the argument. (We used to have a `DROP(_2)` in the code
5 // below, as part of bb3.)
8 std::mem::drop("".to_string());
12 // START rustc.main.ElaborateDrops.before.mir
15 // _1 = const std::mem::drop::<std::string::String>(move _2) -> [return: bb3, unwind: bb4];
24 // END rustc.main.ElaborateDrops.before.mir