diff options
Diffstat (limited to 'tests/ui/rfcs/rfc-2396-target_feature-11/issue-108645-target-feature-on-main.rs')
-rw-r--r-- | tests/ui/rfcs/rfc-2396-target_feature-11/issue-108645-target-feature-on-main.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/ui/rfcs/rfc-2396-target_feature-11/issue-108645-target-feature-on-main.rs b/tests/ui/rfcs/rfc-2396-target_feature-11/issue-108645-target-feature-on-main.rs new file mode 100644 index 000000000..0d59e5026 --- /dev/null +++ b/tests/ui/rfcs/rfc-2396-target_feature-11/issue-108645-target-feature-on-main.rs @@ -0,0 +1,7 @@ +// only-x86_64 + +#![feature(target_feature_11)] + +#[target_feature(enable = "avx2")] +fn main() {} +//~^ ERROR `main` function is not allowed to have `#[target_feature]` |