diff options
| author | est31 <MTest31@outlook.com> | 2023-04-29 14:57:26 +0200 |
|---|---|---|
| committer | est31 <MTest31@outlook.com> | 2023-05-05 21:44:48 +0200 |
| commit | 83b4df4e611961373ffaf4bfcd9f8940a4f37c09 (patch) | |
| tree | 85d737c61f42bb70cef306a56292c83abcf25ab9 /tests/ui/parser | |
| parent | 5eb29c7f49c2d99e9bfc778f30984f7fdcf5fc08 (diff) | |
Add feature gate
Diffstat (limited to 'tests/ui/parser')
| -rw-r--r-- | tests/ui/parser/builtin-syntax.rs | 2 | ||||
| -rw-r--r-- | tests/ui/parser/builtin-syntax.stderr | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/tests/ui/parser/builtin-syntax.rs b/tests/ui/parser/builtin-syntax.rs index c0b91a58073..897dab8ec50 100644 --- a/tests/ui/parser/builtin-syntax.rs +++ b/tests/ui/parser/builtin-syntax.rs @@ -1,3 +1,5 @@ +#![feature(builtin_syntax)] + fn main() { builtin # foobar(); //~ ERROR unknown `builtin #` construct } diff --git a/tests/ui/parser/builtin-syntax.stderr b/tests/ui/parser/builtin-syntax.stderr index 2679049fb5e..ee3764a6221 100644 --- a/tests/ui/parser/builtin-syntax.stderr +++ b/tests/ui/parser/builtin-syntax.stderr @@ -1,11 +1,11 @@ error: unknown `builtin #` construct `foobar` - --> $DIR/builtin-syntax.rs:2:5 + --> $DIR/builtin-syntax.rs:4:5 | LL | builtin # foobar(); | ^^^^^^^^^^^^^^^^ error: expected identifier after `builtin #` - --> $DIR/builtin-syntax.rs:6:15 + --> $DIR/builtin-syntax.rs:8:15 | LL | builtin # {}(); | ^ |
