rust/tests/ui/panic-handler/panic-handler-wrong-location.stderr

12 lines
399 B
Plaintext
Raw Normal View History

error[E0718]: `panic_impl` language item must be applied to a function
2018-12-25 09:56:47 -06:00
--> $DIR/panic-handler-wrong-location.rs:6:1
|
2019-03-09 06:03:44 -06:00
LL | #[panic_handler]
| ^^^^^^^^^^^^^^^^ attribute should be applied to a function, not a static item
error: `#[panic_handler]` function required, but not found
error: aborting due to 2 previous errors
For more information about this error, try `rustc --explain E0718`.