blob: 26793b1b74021d628fc31ff699004ba57bfcd6db [file]
error: `#[panic_handler]` function required, but not found
error: the `panic_handler` attribute cannot be used on statics
--> $DIR/panic-handler-wrong-location.rs:6:3
|
LL | #[panic_handler]
| ^^^^^^^^^^^^^
LL | static X: u32 = 42;
|
= help: the `panic_handler` attribute can only be applied to functions
error: aborting due to 2 previous errors