mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-25 00:03:43 +00:00
Add regression test for macro expansion
This commit is contained in:
parent
1366629262
commit
3b9e5dfda5
@ -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 New Issue
Block a user