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

#![feature(target_feature_11)]

#[target_feature(enable = "avx2")]
fn main() {}
//~^ ERROR `main` function is not allowed to have `#[target_feature]`