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
No related merge requests found
......@@ -66,26 +66,14 @@ const APP: () = {
//
// [Your answer here]
// Compiling app v0.1.0 (/home/niklas/Desktop/D7020E/rtic_f4xx_nucleo)
// error: unreachable expression
// --> src/main.rs:25:9
// |
// 24 | panic!("panic");
// | ---------------- any code following this expression is unreachable
// 25 | / loop {
// 26 | | continue;
// 27 | | }
// | |_________^ 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`
// Finished dev [unoptimized + debuginfo] target(s) in 0.33s
// Running `probe-run --chip STM32F411RETx target/thumbv7em-none-eabi/debug/app`
// (HOST) INFO flashing program (17.96 KiB)
// (HOST) INFO success!
// ────────────────────────────────────────────────────────────────────────────────
// init
// idle
// panicked at 'panic', src/main.rs:24:9
//
// 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