Move /src/test to /tests
This commit is contained in:
parent
ca855e6e42
commit
cf2dff2b1e
27592 changed files with 0 additions and 0 deletions
|
@ -1,11 +0,0 @@
|
|||
#![deny(temporary_cstring_as_ptr)]
|
||||
|
||||
use std::ffi::CString;
|
||||
use std::os::raw::c_char;
|
||||
|
||||
fn some_function(data: *const c_char) {}
|
||||
|
||||
fn main() {
|
||||
some_function(CString::new("").unwrap().as_ptr());
|
||||
//~^ ERROR getting the inner pointer of a temporary `CString`
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue