summaryrefslogtreecommitdiffstats
path: root/tests/ui/lang-items/start_lang_item_with_target_feature.stderr
blob: bb0583dfde0563cf9eca31840a20c9a62d815613 (plain)
1
2
3
4
5
6
7
8
9
10
11
error: `start` language item function is not allowed to have `#[target_feature]`
  --> $DIR/start_lang_item_with_target_feature.rs:13:1
   |
LL | #[target_feature(enable = "avx2")]
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
LL |
LL | fn start<T>(_main: fn() -> T, _argc: isize, _argv: *const *const u8, _sigpipe: u8) -> isize {
   | ------------------------------------------------------------------------------------------- `start` language item function is not allowed to have `#[target_feature]`

error: aborting due to 1 previous error