about summary refs log tree commit diff
path: root/src/test/rustfix/closure-immutable-outer-variable.fixed
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume1.gomez@gmail.com>2021-08-29 16:25:32 +0200
committerGitHub <noreply@github.com>2021-08-29 16:25:32 +0200
commit1a6e8d769aaeafbf814d9f37ff0a68618dcf2150 (patch)
tree63681ed544618e782a21a6ba9b40db38f22d0c33 /src/test/rustfix/closure-immutable-outer-variable.fixed
parent281dfac12f154a8a98a32905c33275a1cc3eb579 (diff)
parente6637284cca42cb497b6b767776136ede71c7119 (diff)
downloadrust-1a6e8d769aaeafbf814d9f37ff0a68618dcf2150.tar.gz
rust-1a6e8d769aaeafbf814d9f37ff0a68618dcf2150.zip
Rollup merge of #88387 - ehuss:remove-rustfix-tests, r=Mark-Simulacrum
Remove vestigial rustfix tests.

The directory `src/test/rustfix` is not actually tested. It looks like a mistake was made when rustfix tests were originally introduced in #50084.  In commit 6f2d023028bbd666be2c211b923b32faf10a41da they were moved to `src/test/ui`, but the tests in the original directory weren't deleted.
Diffstat (limited to 'src/test/rustfix/closure-immutable-outer-variable.fixed')
-rw-r--r--src/test/rustfix/closure-immutable-outer-variable.fixed10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/test/rustfix/closure-immutable-outer-variable.fixed b/src/test/rustfix/closure-immutable-outer-variable.fixed
deleted file mode 100644
index 05bbc13d714..00000000000
--- a/src/test/rustfix/closure-immutable-outer-variable.fixed
+++ /dev/null
@@ -1,10 +0,0 @@
-// Point at the captured immutable outer variable
-
-fn foo(mut f: Box<FnMut()>) {
-    f();
-}
-
-fn main() {
-    let mut y = true;
-    foo(Box::new(move || y = false) as Box<_>);
-}