]> git.lizzy.rs Git - rust.git/blobdiff - tests/ui/toplevel_ref_arg.rs
Allow allowing of toplevel_ref_arg lint
[rust.git] / tests / ui / toplevel_ref_arg.rs
index 3bc0448234ef63ddd0d8593ab69852408610ad81..a412c387a0dd0814f32a7af1986cf49baa7185c0 100644 (file)
@@ -22,4 +22,8 @@ fn main() {
 
     let (ref x, _) = (1, 2); // ok, not top level
     println!("The answer is {}.", x);
+
+    // Make sure that allowing the lint works
+    #[allow(clippy::toplevel_ref_arg)]
+    let ref mut x = 1_234_543;
 }