From c71fedfb37f2b672ed702f44aa0f4811f6837995 Mon Sep 17 00:00:00 2001 From: "henthe-5@student.ltu.se" <henthe-5@student.ltu.se> Date: Tue, 19 Feb 2019 12:47:14 +0100 Subject: [PATCH] bare0_4 --- examples/bare0.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/bare0.rs b/examples/bare0.rs index 606ac0f..2f36a34 100644 --- a/examples/bare0.rs +++ b/examples/bare0.rs @@ -35,7 +35,7 @@ fn main() -> ! { unsafe { X.wrapping_add(1); Y = X; - assert!(x == X && X == Y); + assert!(x == X && X == Y +1 ); } } } @@ -87,7 +87,7 @@ fn main() -> ! { // // 4. Change the asserion to `assert!(x == X && X == Y + 1)`, what happens? // -// ** place your answer here ** +// ** The assert fails and we go into panic handler ** // // Commit your answers (bare0_4) // -- GitLab