rust-clippy/tests/ui/cstring.rs
2019-01-08 21:46:39 +01:00

8 lines
149 B
Rust

fn main() {}
#[allow(clippy::result_unwrap_used)]
fn temporary_cstring() {
use std::ffi::CString;
CString::new("foo").unwrap().as_ptr();
}