]> git.lizzy.rs Git - rust.git/blob - tests/ui/cstring.rs
Merge pull request #3085 from mikerite/revert-98dbce
[rust.git] / tests / ui / cstring.rs
1 #![feature(tool_lints)]
2
3 fn main() {}
4
5 #[allow(clippy::result_unwrap_used)]
6 fn temporary_cstring() {
7     use std::ffi::CString;
8
9     CString::new("foo").unwrap().as_ptr();
10 }