about summary refs log tree commit diff
path: root/tests/ui/panic-handler/panic-handler-with-target-feature.stderr
blob: ddf0ae77a0a1a491d3252201d4839e08b9f29c76 (plain)
1
2
3
4
5
6
7
8
9
10
11
error: `#[panic_handler]` function is not allowed to have `#[target_feature]`
  --> $DIR/panic-handler-with-target-feature.rs:10:1
   |
LL | #[target_feature(enable = "avx2")]
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
LL |
LL | fn panic(info: &PanicInfo) -> ! {
   | ------------------------------- `#[panic_handler]` function is not allowed to have `#[target_feature]`

error: aborting due to 1 previous error