diff --git a/Do7and/2024212-154327.png b/Do7and/2024212-154327.png new file mode 100644 index 0000000..88c1357 Binary files /dev/null and b/Do7and/2024212-154327.png differ diff --git a/Do7and/README.txt b/Do7and/README.txt new file mode 100644 index 0000000..42ab74f --- /dev/null +++ b/Do7and/README.txt @@ -0,0 +1 @@ +loop 并使用std::mem::forget \ No newline at end of file diff --git a/Do7and/main.rs b/Do7and/main.rs new file mode 100644 index 0000000..1305b20 --- /dev/null +++ b/Do7and/main.rs @@ -0,0 +1,7 @@ +fn main() { + loop { + let l = vec!['l']; + std::mem::forget(l); + } + +}