diff options
| author | est31 <MTest31@outlook.com> | 2023-01-19 10:24:17 +0100 |
|---|---|---|
| committer | est31 <MTest31@outlook.com> | 2023-05-05 21:44:13 +0200 |
| commit | 59ecbd2cea20839f1288b917cbf5ba8c23864df7 (patch) | |
| tree | c60e269ea5a5df36aa47f2f7ee400d859376c475 /tests/ui/parser/builtin-syntax.rs | |
| parent | 4b94c232192b0fa0314b5afa18e366356e210c4c (diff) | |
| download | rust-59ecbd2cea20839f1288b917cbf5ba8c23864df7.tar.gz rust-59ecbd2cea20839f1288b917cbf5ba8c23864df7.zip | |
Add parsing for builtin # in expression and item context
Diffstat (limited to 'tests/ui/parser/builtin-syntax.rs')
| -rw-r--r-- | tests/ui/parser/builtin-syntax.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/ui/parser/builtin-syntax.rs b/tests/ui/parser/builtin-syntax.rs new file mode 100644 index 00000000000..c0b91a58073 --- /dev/null +++ b/tests/ui/parser/builtin-syntax.rs @@ -0,0 +1,7 @@ +fn main() { + builtin # foobar(); //~ ERROR unknown `builtin #` construct +} + +fn not_identifier() { + builtin # {}(); //~ ERROR expected identifier after +} |
