Skip to content

Commit 6ba127d

Browse files
committed
Fix doctest
1 parent 5ac1688 commit 6ba127d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

compiler/rustc_lint/src/methods.rs

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ declare_lint! {
1313
///
1414
/// ```rust
1515
/// # #![allow(unused)]
16+
/// # use std::ffi::CString;
1617
/// let c_str = CString::new("foo").unwrap().as_ptr();
1718
/// ```
1819
///

0 commit comments

Comments
 (0)