diff --git a/library/std/src/primitive_docs.rs b/library/std/src/primitive_docs.rs index dfc026fb84f6e..0a0aa6785ed1d 100644 --- a/library/std/src/primitive_docs.rs +++ b/library/std/src/primitive_docs.rs @@ -232,10 +232,7 @@ mod prim_bool {} /// /// ``` /// #![feature(never_type)] -/// # use std::fmt; -/// # trait Debug { -/// # fn fmt(&self, formatter: &mut fmt::Formatter<'_>) -> fmt::Result; -/// # } +/// # use std::fmt::{self, Debug}; /// impl Debug for ! { /// fn fmt(&self, formatter: &mut fmt::Formatter<'_>) -> fmt::Result { /// *self