about summary refs log tree commit diff
path: root/src/libstd/io
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2015-04-06 18:52:18 -0700
committerAlex Crichton <alex@alexcrichton.com>2015-04-07 17:54:34 -0700
commitba402312fed8134a9919bbb79bcd9978b92e4dee (patch)
tree632e99d9adc3ca92950a86f1b4ba97426057bfce /src/libstd/io
parent179719d45023e549a62ec7a584d554408c6d241d (diff)
downloadrust-ba402312fed8134a9919bbb79bcd9978b92e4dee.tar.gz
rust-ba402312fed8134a9919bbb79bcd9978b92e4dee.zip
std: Deny most warnings in doctests
Allow a few specific ones but otherwise this helps ensure that our examples are
squeaky clean!

Closes #18199
Diffstat (limited to 'src/libstd/io')
-rw-r--r--src/libstd/io/prelude.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libstd/io/prelude.rs b/src/libstd/io/prelude.rs
index 333ae8f26a0..880770eb414 100644
--- a/src/libstd/io/prelude.rs
+++ b/src/libstd/io/prelude.rs
@@ -14,6 +14,7 @@
 //! by adding a glob import to the top of I/O heavy modules:
 //!
 //! ```
+//! # #![allow(unused_imports)]
 //! use std::io::prelude::*;
 //! ```
 //!