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.fixed10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/ui/format_args.fixed b/tests/ui/format_args.fixed
index edfdaa23ca1..3cb6c0b4d97 100644
--- a/tests/ui/format_args.fixed
+++ b/tests/ui/format_args.fixed
@@ -192,3 +192,13 @@ mod issue_9256 {
         print_substring("Hello, world!");
     }
 }
+
+mod issue14952 {
+    use std::path::Path;
+    struct Foo(Path);
+    impl std::fmt::Debug for Foo {
+        fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
+            write!(f, "{:?}", &self.0)
+        }
+    }
+}