1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
// Auto-generated. Do not modify this file! Instead modify examples/panic.rs //! `panic!`s send their messages to the ITM //! //! See the `itm` example for instruction on how the receive "ITM" messages on the HOST, e.g. your //! laptop. You should see the following output after running the program below: //! //! ``` text //! $ itmdump /tmp/itm.fifo //! PANIC at 'Hello, world!', examples/panic.rs:21 //! ``` //! //! Like with "`std`" panics, these panics also report file and line information. //! //! ``` rust,no_run //! #![feature(asm)] //! #![no_main] //! #![no_std] //! //! #[macro_use] //! extern crate cortex_m; //! extern crate f3; //! //! #[export_name = "main"] //! pub extern "C" fn main() -> ! { //! panic!("Hello, world!") //! } //! ```