]> git.lizzy.rs Git - rust.git/blob - tests/ui/panic-handler/panic-handler-wrong-location.stderr
Rollup merge of #106726 - cmorin6:fix-comment-typos, r=Nilstrieb
[rust.git] / tests / ui / panic-handler / panic-handler-wrong-location.stderr
1 error[E0718]: `panic_impl` language item must be applied to a function
2   --> $DIR/panic-handler-wrong-location.rs:6:1
3    |
4 LL | #[panic_handler]
5    | ^^^^^^^^^^^^^^^^ attribute should be applied to a function, not a static item
6
7 error: `#[panic_handler]` function required, but not found
8
9 error: aborting due to 2 previous errors
10
11 For more information about this error, try `rustc --explain E0718`.