about summary refs log tree commit diff
path: root/compiler/rustc_lint/src/methods.rs
diff options
context:
space:
mode:
authorNathan Whitaker <nathan.whitaker01@gmail.com>2020-09-22 12:38:50 -0400
committerNathan Whitaker <nathan.whitaker01@gmail.com>2020-10-26 18:19:49 -0400
commit6ba127d3f06aa785eaf3df96f0adb505de67e74c (patch)
treeab2fcb540a91383d25fe31571535d72287c321be /compiler/rustc_lint/src/methods.rs
parent5ac1688f4bd87ac6c1a416841e5a53fa1517cfab (diff)
downloadrust-6ba127d3f06aa785eaf3df96f0adb505de67e74c.tar.gz
rust-6ba127d3f06aa785eaf3df96f0adb505de67e74c.zip
Fix doctest
Diffstat (limited to 'compiler/rustc_lint/src/methods.rs')
-rw-r--r--compiler/rustc_lint/src/methods.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/rustc_lint/src/methods.rs b/compiler/rustc_lint/src/methods.rs
index 2fad02bf883..8732845af0c 100644
--- a/compiler/rustc_lint/src/methods.rs
+++ b/compiler/rustc_lint/src/methods.rs
@@ -13,6 +13,7 @@ declare_lint! {
     ///
     /// ```rust
     /// # #![allow(unused)]
+    /// # use std::ffi::CString;
     /// let c_str = CString::new("foo").unwrap().as_ptr();
     /// ```
     ///