Add regression test for non-returning functions

This commit is contained in:
Marcus Klaas 2015-09-17 21:35:03 +02:00
parent 7c6f9c5edb
commit ad7af22278
2 changed files with 5 additions and 0 deletions
tests

@ -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>) {
}

@ -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>) {
}