]> git.lizzy.rs Git - rust.git/blobdiff - tests/ui/toplevel_ref_arg.rs
iterate List by value
[rust.git] / tests / ui / toplevel_ref_arg.rs
index ee630f12a601847ab0c78c014ca4c861ef6571f4..59759f1189333539a3b3c718e252f1fdb11fbfb1 100644 (file)
@@ -23,4 +23,7 @@ fn main() {
     // Make sure that allowing the lint works
     #[allow(clippy::toplevel_ref_arg)]
     let ref mut _x = 1_234_543;
+
+    // ok
+    for ref _x in 0..10 {}
 }