about summary refs log tree commit diff
path: root/tests/ui/vec.fixed
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/vec.fixed')
-rw-r--r--tests/ui/vec.fixed4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/ui/vec.fixed b/tests/ui/vec.fixed
index b318fd42f7c..9e755a82af4 100644
--- a/tests/ui/vec.fixed
+++ b/tests/ui/vec.fixed
@@ -217,3 +217,7 @@ fn issue_11958() {
     // should not lint, `String` is not `Copy`
     f(&vec!["test".to_owned(); 2]);
 }
+
+fn issue_12101() {
+    for a in &[1, 2] {}
+}