We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ad56664 commit 4742dbcCopy full SHA for 4742dbc
library/std/src/io/stdio.rs
@@ -20,7 +20,7 @@ type LocalStream = Arc<Mutex<Vec<u8>>>;
20
21
thread_local! {
22
/// Used by the test crate to capture the output of the print macros and panics.
23
- static OUTPUT_CAPTURE: Cell<Option<LocalStream>> = {
+ static OUTPUT_CAPTURE: Cell<Option<LocalStream>> = const {
24
Cell::new(None)
25
}
26
0 commit comments