mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-23 13:13:34 +00:00
Add regression test for macro expansion
This commit is contained in:
parent
1366629262
commit
3b9e5dfda5
1 changed files with 2 additions and 0 deletions
|
@ -19,6 +19,8 @@ fn main() {
|
|||
let (ref x, _) = (1, 2); // ok, not top level
|
||||
println!("The answer is {}.", x);
|
||||
|
||||
let ref x = vec![1, 2, 3];
|
||||
|
||||
// Make sure that allowing the lint works
|
||||
#[allow(clippy::toplevel_ref_arg)]
|
||||
let ref mut x = 1_234_543;
|
||||
|
|
Loading…
Reference in a new issue