Remove doc-comment default::Default imports

In 8f5b5f94dc, `default::Default` was
added to the prelude, so these imports are no longer necessary.
This commit is contained in:
Corey Farwell 2015-04-22 09:42:36 -04:00
parent e9e9279d87
commit 68989918d2
3 changed files with 0 additions and 12 deletions

View file

@ -459,7 +459,6 @@ impl<T: Default> Default for Rc<T> {
///
/// ```
/// use std::rc::Rc;
/// use std::default::Default;
///
/// let x: Rc<i32> = Default::default();
/// ```

View file

@ -24,8 +24,6 @@
//! How can we define some default values? You can use `Default`:
//!
//! ```
//! use std::default::Default;
//!
//! #[derive(Default)]
//! struct SomeOptions {
//! foo: i32,
@ -42,8 +40,6 @@
//! If you have your own type, you need to implement `Default` yourself:
//!
//! ```
//! use std::default::Default;
//!
//! enum Kind {
//! A,
//! B,
@ -70,7 +66,6 @@
//! If you want to override a particular option, but still retain the other defaults:
//!
//! ```
//! # use std::default::Default;
//! # #[derive(Default)]
//! # struct SomeOptions {
//! # foo: i32,
@ -109,8 +104,6 @@ pub trait Default {
/// Using built-in default values:
///
/// ```
/// use std::default::Default;
///
/// let i: i8 = Default::default();
/// let (x, y): (Option<String>, f64) = Default::default();
/// let (a, b, (c, d)): (i32, u32, (bool, bool)) = Default::default();
@ -119,8 +112,6 @@ pub trait Default {
/// Making your own:
///
/// ```
/// use std::default::Default;
///
/// enum Kind {
/// A,
/// B,

View file

@ -43,8 +43,6 @@
//! Using traits implemented for tuples:
//!
//! ```
//! use std::default::Default;
//!
//! let a = (1, 2);
//! let b = (3, 4);
//! assert!(a != b);