Skip to content

Commit

Permalink
Import Debug instead of redefining it
Browse files Browse the repository at this point in the history
  • Loading branch information
camelid authored Aug 30, 2020
1 parent bd31962 commit 7e2548f
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions library/std/src/primitive_docs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7e2548f

Please sign in to comment.