From ad7af222785a51588d05e00adf5186114cc43198 Mon Sep 17 00:00:00 2001 From: Marcus Klaas Date: Thu, 17 Sep 2015 21:35:03 +0200 Subject: [PATCH] Add regression test for non-returning functions --- tests/source/fn-simple.rs | 2 ++ tests/target/fn-simple.rs | 3 +++ 2 files changed, 5 insertions(+) diff --git a/tests/source/fn-simple.rs b/tests/source/fn-simple.rs index 30d11dbc71e..5f41141b689 100644 --- a/tests/source/fn-simple.rs +++ b/tests/source/fn-simple.rs @@ -18,6 +18,8 @@ fn generic(arg: T) -> &SomeType arg(a, b, c, d, e) } +fn foo() -> ! {} + pub fn http_fetch_async(listener:Box< AsyncCORSResponseListener+Send >, script_chan: Box) { } diff --git a/tests/target/fn-simple.rs b/tests/target/fn-simple.rs index f01e85193f5..e8b5635671d 100644 --- a/tests/target/fn-simple.rs +++ b/tests/target/fn-simple.rs @@ -28,6 +28,9 @@ fn generic(arg: T) -> &SomeType arg(a, b, c, d, e) } +fn foo() -> ! { +} + pub fn http_fetch_async(listener: Box, script_chan: Box) { }