about summary refs log tree commit diff
path: root/tests/ui/format_args.fixed
diff options
context:
space:
mode:
authorPhilipp Krones <hello@philkrones.com>2022-10-20 16:39:27 +0200
committerPhilipp Krones <hello@philkrones.com>2022-10-20 16:39:27 +0200
commitfb8ecb983258aafdf0e8a56c565a615e1e1dafb4 (patch)
treeeb0955692c1bd56ac0ffefdbbcdb8bcc2653f104 /tests/ui/format_args.fixed
parent4f50e6f41ec8b55a6dc52066dc15fa5d17b8e39b (diff)
parent1afc7e227de5453ba98212f82c892522068ea830 (diff)
downloadrust-fb8ecb983258aafdf0e8a56c565a615e1e1dafb4.tar.gz
rust-fb8ecb983258aafdf0e8a56c565a615e1e1dafb4.zip
Merge remote-tracking branch 'upstream/master' into rustup
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) {