Merge pull request #330 from marcusklaas/fn-no-return

Add regression test for non-returning functions
This commit is contained in:
cassiersg 2015-09-17 23:09:09 +02:00
commit ce64dec90c
2 changed files with 5 additions and 0 deletions

View File

@ -18,6 +18,8 @@ fn generic<T>(arg: T) -> &SomeType
arg(a, b, c, d, e)
}
fn foo() -> ! {}
pub fn http_fetch_async(listener:Box< AsyncCORSResponseListener+Send >, script_chan: Box<ScriptChan+Send>) {
}

View File

@ -28,6 +28,9 @@ fn generic<T>(arg: T) -> &SomeType
arg(a, b, c, d, e)
}
fn foo() -> ! {
}
pub fn http_fetch_async(listener: Box<AsyncCORSResponseListener + Send>,
script_chan: Box<ScriptChan + Send>) {
}