From b570821c8a7f9fda07f9505fc0eed253677ff6fe Mon Sep 17 00:00:00 2001 From: Bert Peters Date: Thu, 29 Nov 2018 17:01:01 +0100 Subject: [PATCH] Properly use the never type. --- 2016/src/day25.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/2016/src/day25.rs b/2016/src/day25.rs index 40ae4fa..e899cdb 100644 --- a/2016/src/day25.rs +++ b/2016/src/day25.rs @@ -19,12 +19,11 @@ impl common::Solution for Day25 { let initial = 0b101010101010 - 362 * 7; println!("Initial value: {}", initial); sender_program(initial); - unreachable!(); } } /// This function is an approximation of what the original code is doing. -pub fn sender_program(mut a: i32) { +pub fn sender_program(mut a: i32) -> ! { // Placeholder variables let mut b; let mut d;