1 // ignore-emscripten compiled with panic=abort by default
3 // check that we don't emit multiple drop flags when they are not needed.
6 let x = S.other(S.id());
9 // no_mangle to make sure this gets instantiated even in an executable.
25 fn id(self) -> Self { self }
26 fn other(self, s: Self) {}
30 // START rustc.main.ElaborateDrops.after.mir
41 // END rustc.main.ElaborateDrops.after.mir
42 // START rustc.test.ElaborateDrops.after.mir
53 // END rustc.test.ElaborateDrops.after.mir