rust/tests/ui/rfcs/rfc-2396-target_feature-11/issue-108645-target-feature-on-main.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

8 lines
166 B
Rust
Raw Normal View History

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