From c59ebf0f018b748011fc9b23ce0bab3dcfcfe733 Mon Sep 17 00:00:00 2001 From: Marijn Haverbeke Date: Tue, 5 Jul 2011 11:50:35 +0200 Subject: [PATCH] Add a test file for distinct ty_native types This should have gone into patch 77f5d14f14630da997f13de28ea86e8320957180, had I not forgotten to add the file. --- src/test/compile-fail/native-type-mismatch.rs | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 src/test/compile-fail/native-type-mismatch.rs diff --git a/src/test/compile-fail/native-type-mismatch.rs b/src/test/compile-fail/native-type-mismatch.rs new file mode 100644 index 000000000000..e88f39dabe77 --- /dev/null +++ b/src/test/compile-fail/native-type-mismatch.rs @@ -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); +}