// This test case exercises std::sys_common::remutex::ReentrantMutex
// by calling println!() from inside fmt
-struct InterruptingCow();
+struct InterruptingCow;
impl Display for InterruptingCow {
fn fmt(&self, _f: &mut Formatter<'_>) -> Result<(), Error> {
}
fn main() {
- println!("\"Knock knock\" \"Who's {} there?\"", InterruptingCow());
+ println!("\"Knock knock\" \"Who's {} there?\"", InterruptingCow);
}
-// Requires full MIR on Windows.
-
#![feature(rustc_private)]
use std::sync::{Mutex, RwLock, TryLockError};