Skip to content
Snippets Groups Projects
Commit 6e3a1c7e authored by Niklas Lundberg's avatar Niklas Lundberg Committed by Blinningjr
Browse files

Corrected answer C based on feedback from Mark

parent 75689fd7
No related branches found
No related tags found
Loading
...@@ -66,26 +66,14 @@ const APP: () = { ...@@ -66,26 +66,14 @@ const APP: () = {
// //
// [Your answer here] // [Your answer here]
// Compiling app v0.1.0 (/home/niklas/Desktop/D7020E/rtic_f4xx_nucleo) // Compiling app v0.1.0 (/home/niklas/Desktop/D7020E/rtic_f4xx_nucleo)
// error: unreachable expression // Finished dev [unoptimized + debuginfo] target(s) in 0.33s
// --> src/main.rs:25:9 // Running `probe-run --chip STM32F411RETx target/thumbv7em-none-eabi/debug/app`
// | // (HOST) INFO flashing program (17.96 KiB)
// 24 | panic!("panic"); // (HOST) INFO success!
// | ---------------- any code following this expression is unreachable // ────────────────────────────────────────────────────────────────────────────────
// 25 | / loop { // init
// 26 | | continue; // idle
// 27 | | } // panicked at 'panic', src/main.rs:24:9
// | |_________^ unreachable expression
// |
// note: the lint level is defined here
// --> src/main.rs:4:9
// |
// 4 | #![deny(warnings)]
// | ^^^^^^^^
// = note: `#[deny(unreachable_code)]` implied by `#[deny(warnings)]`
//
// error: aborting due to previous error
//
// error: could not compile `app`
// //
// To learn more, run the command again with --verbose. // To learn more, run the command again with --verbose.
// //
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment