]> git.lizzy.rs Git - rust.git/blob - tests/ui/cstring.rs
Adapt the *.stderr files of the ui-tests to the tool_lints
[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 }