Skip to content
Snippets Groups Projects
Commit c71fedfb authored by Henrik Theolin's avatar Henrik Theolin
Browse files

bare0_4

parent 16f16fd0
No related branches found
No related tags found
No related merge requests found
...@@ -35,7 +35,7 @@ fn main() -> ! { ...@@ -35,7 +35,7 @@ fn main() -> ! {
unsafe { unsafe {
X.wrapping_add(1); X.wrapping_add(1);
Y = X; Y = X;
assert!(x == X && X == Y); assert!(x == X && X == Y +1 );
} }
} }
} }
...@@ -87,7 +87,7 @@ fn main() -> ! { ...@@ -87,7 +87,7 @@ fn main() -> ! {
// //
// 4. Change the asserion to `assert!(x == X && X == Y + 1)`, what happens? // 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) // Commit your answers (bare0_4)
// //
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment