about summary refs log tree commit diff
path: root/tests/ui/offset-of
diff options
context:
space:
mode:
authorest31 <MTest31@outlook.com>2023-04-29 14:57:26 +0200
committerest31 <MTest31@outlook.com>2023-05-05 21:44:48 +0200
commit83b4df4e611961373ffaf4bfcd9f8940a4f37c09 (patch)
tree85d737c61f42bb70cef306a56292c83abcf25ab9 /tests/ui/offset-of
parent5eb29c7f49c2d99e9bfc778f30984f7fdcf5fc08 (diff)
downloadrust-83b4df4e611961373ffaf4bfcd9f8940a4f37c09.tar.gz
rust-83b4df4e611961373ffaf4bfcd9f8940a4f37c09.zip
Add feature gate
Diffstat (limited to 'tests/ui/offset-of')
-rw-r--r--tests/ui/offset-of/offset-of-builtin.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/ui/offset-of/offset-of-builtin.rs b/tests/ui/offset-of/offset-of-builtin.rs
index dcc58e842a0..1be9899887b 100644
--- a/tests/ui/offset-of/offset-of-builtin.rs
+++ b/tests/ui/offset-of/offset-of-builtin.rs
@@ -1,9 +1,9 @@
+#![feature(builtin_syntax)]
+
 // For the exposed macro we already test these errors in the other files,
 // but this test helps to make sure the builtin construct also errors.
 // This has the same examples as offset-of-arg-count.rs
 
-
-
 fn main() {
     builtin # offset_of(NotEnoughArguments); //~ ERROR expected one of
 }