summary refs log tree commit diff
path: root/src/test/ui/panic-handler/panic-handler-wrong-location.stderr
blob: f761e26b86e712acf20e185e375124c0b1be584f (plain)
1
2
3
4
5
6
7
8
9
10
11
error[E0718]: `panic_impl` language item must be applied to a function
  --> $DIR/panic-handler-wrong-location.rs:16:1
   |
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`.