]> git.lizzy.rs Git - rust.git/blobdiff - src/test/mir-opt/generator-drop-cleanup.rs
Adjust mir-opt test and make it drop something
[rust.git] / src / test / mir-opt / generator-drop-cleanup.rs
index 1c3025d5e3faf4fb0bdbc84084b48018e1f39ebe..0cfc2c28cb2aba25a8015aa1419cc44d8abacdcb 100644 (file)
@@ -6,6 +6,7 @@
 // EMIT_MIR rustc.main-{{closure}}.generator_drop.0.mir
 fn main() {
     let gen = || {
+        let _s = String::new();
         yield;
     };
 }