summaryrefslogtreecommitdiffstats
path: root/tests/ui/rfcs/rfc-2396-target_feature-11/issue-108645-target-feature-on-start.rs
blob: 221c0416dbf7026e13a4729d8d44a4bc194fc6c3 (plain)
1
2
3
4
5
6
7
8
9
// only-x86_64

#![feature(start)]
#![feature(target_feature_11)]

#[start]
#[target_feature(enable = "avx2")]
//~^ ERROR `#[start]` function is not allowed to have `#[target_feature]`
fn start(_argc: isize, _argv: *const *const u8) -> isize { 0 }