Fix bootstrap doctest failure

This commit is contained in:
Nathan Whitaker 2020-10-26 22:09:47 -04:00
parent cb8b9012db
commit 39941e6281

View File

@ -1266,7 +1266,7 @@ impl CStr {
/// behavior when `ptr` is used inside the `unsafe` block:
///
/// ```no_run
/// # #![allow(unused_must_use, temporary_cstring_as_ptr)]
/// # #![allow(unused_must_use)] #![cfg_attr(not(bootstrap), allow(temporary_cstring_as_ptr))]
/// use std::ffi::CString;
///
/// let ptr = CString::new("Hello").expect("CString::new failed").as_ptr();