Skip to content

Commit 3b9e5df

Browse files
committed
Add regression test for macro expansion
1 parent 1366629 commit 3b9e5df

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/ui/toplevel_ref_arg.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ fn main() {
1919
let (ref x, _) = (1, 2); // ok, not top level
2020
println!("The answer is {}.", x);
2121

22+
let ref x = vec![1, 2, 3];
23+
2224
// Make sure that allowing the lint works
2325
#[allow(clippy::toplevel_ref_arg)]
2426
let ref mut x = 1_234_543;

0 commit comments

Comments
 (0)