Auto merge of #27315 - eefriedman:improper-ctypes-void-ret, r=alexcrichton

Fixes issue #27302.
This commit is contained in:
bors 2015-07-27 11:49:45 +00:00
commit d019a49ac8
2 changed files with 18 additions and 6 deletions

View file

@ -26,6 +26,7 @@ pub type I32Pair = (i32, i32);
pub struct ZeroSize;
pub type RustFn = fn();
pub type RustBadRet = extern fn() -> Box<u32>;
pub type CVoidRet = ();
extern {
pub fn bare_type1(size: isize); //~ ERROR: found Rust type
@ -52,6 +53,8 @@ extern {
pub fn good6(s: StructWithProjectionAndLifetime);
pub fn good7(fptr: extern fn() -> ());
pub fn good8(fptr: extern fn() -> !);
pub fn good9() -> ();
pub fn good10() -> CVoidRet;
}
fn main() {