]> git.lizzy.rs Git - rust.git/blobdiff - tests/ui/toplevel_ref_arg.fixed
iterate List by value
[rust.git] / tests / ui / toplevel_ref_arg.fixed
index 9438abbe330d5253c8ce3410e70e936fef5fd366..33605aca0199c4e3099aca9e50179fa41df7f58d 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 {}
 }