We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a54fda2 commit be8323fCopy full SHA for be8323f
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