Import Debug instead of redefining it

This commit is contained in:
Camelid 2020-08-30 11:39:45 -07:00 committed by GitHub
parent bd3196282b
commit 7e2548fe69
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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