We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1366629 commit 3b9e5dfCopy full SHA for 3b9e5df
tests/ui/toplevel_ref_arg.rs
@@ -19,6 +19,8 @@ fn main() {
19
let (ref x, _) = (1, 2); // ok, not top level
20
println!("The answer is {}.", x);
21
22
+ let ref x = vec![1, 2, 3];
23
+
24
// Make sure that allowing the lint works
25
#[allow(clippy::toplevel_ref_arg)]
26
let ref mut x = 1_234_543;
0 commit comments