38d4ac7cea
Discussion previously happened in https://github.com/rust-lang/rust/pull/43498
9 lines
149 B
Rust
9 lines
149 B
Rust
fn main() {}
|
|
|
|
#[allow(clippy::result_unwrap_used)]
|
|
fn temporary_cstring() {
|
|
use std::ffi::CString;
|
|
|
|
CString::new("foo").unwrap().as_ptr();
|
|
}
|