From 6ba127d3f06aa785eaf3df96f0adb505de67e74c Mon Sep 17 00:00:00 2001 From: Nathan Whitaker Date: Tue, 22 Sep 2020 12:38:50 -0400 Subject: [PATCH] Fix doctest --- compiler/rustc_lint/src/methods.rs | 1 + 1 file changed, 1 insertion(+) 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(); /// ``` ///