diff --git a/src/cargo/util/diagnostic_server.rs b/src/cargo/util/diagnostic_server.rs index 72eafa63c09..14e20b87c11 100644 --- a/src/cargo/util/diagnostic_server.rs +++ b/src/cargo/util/diagnostic_server.rs @@ -328,3 +328,13 @@ impl Drop for StartedServer { drop(self.thread.take().unwrap().join()); } } + +#[cfg(test)] +mod tests { + use super::*; + + #[test] + fn test_rustfix_diagnostic_server() { + RustfixDiagnosticServer::new().unwrap(); + } +}