Add a test file for distinct ty_native types
This should have gone into patch
77f5d14f14
, had I not forgotten to add
the file.
This commit is contained in:
parent
04acba7968
commit
c59ebf0f01
1 changed files with 7 additions and 0 deletions
7
src/test/compile-fail/native-type-mismatch.rs
Normal file
7
src/test/compile-fail/native-type-mismatch.rs
Normal file
|
@ -0,0 +1,7 @@
|
|||
// error-pattern:expected native but found native
|
||||
use std;
|
||||
|
||||
fn main() {
|
||||
let std::os::libc::FILE f = std::io::rustrt::rust_get_stdin();
|
||||
std::os::libc::opendir(f);
|
||||
}
|
Loading…
Reference in a new issue