]> git.proxmox.com Git - rustc.git/blobdiff - tests/ui/rfcs/rfc-2396-target_feature-11/issue-108645-target-feature-on-start.rs
Update upstream source from tag 'upstream/1.70.0+dfsg1'
[rustc.git] / tests / ui / rfcs / rfc-2396-target_feature-11 / issue-108645-target-feature-on-start.rs
diff --git a/tests/ui/rfcs/rfc-2396-target_feature-11/issue-108645-target-feature-on-start.rs b/tests/ui/rfcs/rfc-2396-target_feature-11/issue-108645-target-feature-on-start.rs
new file mode 100644 (file)
index 0000000..50e8ce2
--- /dev/null
@@ -0,0 +1,9 @@
+// only-x86_64
+
+#![feature(start)]
+#![feature(target_feature_11)]
+
+#[start]
+#[target_feature(enable = "avx2")]
+//~^ ERROR `start` is not allowed to have `#[target_feature]`
+fn start(_argc: isize, _argv: *const *const u8) -> isize { 0 }