diff options
| author | Camelid <37223377+camelid@users.noreply.github.com> | 2020-08-30 11:39:45 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-08-30 11:39:45 -0700 |
| commit | 7e2548fe69ff5ec4e5e06c8c28351cbf2ebf7eee (patch) | |
| tree | 9b63bec39604ca063c5f6f6dea6105a93906e2f3 /library/std/src/primitive_docs.rs | |
| parent | bd3196282ba61ba284f4e176db3537f61b11892c (diff) | |
| download | rust-7e2548fe69ff5ec4e5e06c8c28351cbf2ebf7eee.tar.gz rust-7e2548fe69ff5ec4e5e06c8c28351cbf2ebf7eee.zip | |
Import `Debug` instead of redefining it
Diffstat (limited to 'library/std/src/primitive_docs.rs')
| -rw-r--r-- | library/std/src/primitive_docs.rs | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/library/std/src/primitive_docs.rs b/library/std/src/primitive_docs.rs index dfc026fb84f..0a0aa6785ed 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 |
