We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 858e121 commit a715f53Copy full SHA for a715f53
tests/ui/fmt/debug-single-call.rs
@@ -1,9 +1,12 @@
1
+//! Test that Debug::fmt is called exactly once during formatting.
2
+//!
3
+//! This is a regression test for PR https://github.com/rust-lang/rust/pull/10715
4
+
5
//@ run-pass
6
//@ needs-threads
7
8
use std::cell::Cell;
-use std::fmt;
-use std::thread;
9
+use std::{fmt, thread};
10
11
struct Foo(Cell<isize>);
12
0 commit comments