2017-10-09 23:15:19 -05:00
|
|
|
fn main() {}
|
|
|
|
|
2018-07-28 17:34:52 +02:00
|
|
|
#[allow(clippy::result_unwrap_used)]
|
2017-10-09 23:15:19 -05:00
|
|
|
fn temporary_cstring() {
|
|
|
|
use std::ffi::CString;
|
|
|
|
|
|
|
|
CString::new("foo").unwrap().as_ptr();
|
2019-08-09 12:33:07 +07:00
|
|
|
CString::new("foo").expect("dummy").as_ptr();
|
2017-10-09 23:15:19 -05:00
|
|
|
}
|