Add regression test for macro expansion

This commit is contained in:
Lzu Tao 2019-09-25 11:06:52 +07:00
parent 1366629262
commit 3b9e5dfda5

View file

@ -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;