]> git.proxmox.com Git - rustc.git/blobdiff - src/tools/clippy/tests/ui/to_string_in_display.stderr
Update upstream source from tag 'upstream/1.52.1+dfsg1'
[rustc.git] / src / tools / clippy / tests / ui / to_string_in_display.stderr
diff --git a/src/tools/clippy/tests/ui/to_string_in_display.stderr b/src/tools/clippy/tests/ui/to_string_in_display.stderr
new file mode 100644 (file)
index 0000000..5f26ef4
--- /dev/null
@@ -0,0 +1,10 @@
+error: using `to_string` in `fmt::Display` implementation might lead to infinite recursion
+  --> $DIR/to_string_in_display.rs:25:25
+   |
+LL |         write!(f, "{}", self.to_string())
+   |                         ^^^^^^^^^^^^^^^^
+   |
+   = note: `-D clippy::to-string-in-display` implied by `-D warnings`
+
+error: aborting due to previous error
+