mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-10 05:53:10 +00:00
Merge pull request #330 from marcusklaas/fn-no-return
Add regression test for non-returning functions
This commit is contained in:
commit
ce64dec90c
@ -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>) {
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user