Fix bootstrap doctest failure
This commit is contained in:
parent
cb8b9012db
commit
39941e6281
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user