1 // this program is not technically incorrect, but is an obscure enough style to be worth linting
2 #![deny(temporary_cstring_as_ptr)]
7 let s = CString::new("some text").unwrap().as_ptr();
8 //~^ ERROR getting the inner pointer of a temporary `CString`