about summary refs log tree commit diff
path: root/tests/ui/format_args.fixed
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/format_args.fixed')
-rw-r--r--tests/ui/format_args.fixed3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/ui/format_args.fixed b/tests/ui/format_args.fixed
index 24cf0847dd5..825e122be5a 100644
--- a/tests/ui/format_args.fixed
+++ b/tests/ui/format_args.fixed
@@ -3,6 +3,7 @@
 #![allow(unused)]
 #![allow(
     clippy::assertions_on_constants,
+    clippy::double_parens,
     clippy::eq_op,
     clippy::print_literal,
     clippy::uninlined_format_args
@@ -114,6 +115,8 @@ fn main() {
     println!("error: something failed at {}", my_other_macro!());
     // https://github.com/rust-lang/rust-clippy/issues/7903
     println!("{foo}{foo:?}", foo = "foo".to_string());
+    print!("{}", (Location::caller()));
+    print!("{}", ((Location::caller())));
 }
 
 fn issue8643(vendor_id: usize, product_id: usize, name: &str) {