summaryrefslogtreecommitdiffstats
path: root/tests/ui/intrinsics/feature-gate-safe-intrinsic.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/intrinsics/feature-gate-safe-intrinsic.rs')
-rw-r--r--tests/ui/intrinsics/feature-gate-safe-intrinsic.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/ui/intrinsics/feature-gate-safe-intrinsic.rs b/tests/ui/intrinsics/feature-gate-safe-intrinsic.rs
new file mode 100644
index 000000000..ffaa4d771
--- /dev/null
+++ b/tests/ui/intrinsics/feature-gate-safe-intrinsic.rs
@@ -0,0 +1,6 @@
+#[rustc_safe_intrinsic]
+//~^ ERROR the `#[rustc_safe_intrinsic]` attribute is used internally to mark intrinsics as safe
+//~| ERROR attribute should be applied to intrinsic functions
+fn safe() {}
+
+fn main() {}