diff options
| author | Ezra Shaw <ezrasure@outlook.com> | 2023-01-14 23:00:17 +1300 |
|---|---|---|
| committer | Ezra Shaw <ezrasure@outlook.com> | 2023-01-15 12:48:53 +1300 |
| commit | 41856b0a0f0a612c1e64088baed5389d82f93157 (patch) | |
| tree | cdf586caa69cbbdcb474a17ac37265205848e024 /tests/ui/macros/issue-106837.rs | |
| parent | e9e09083674a58d361cd805877be55b5856d2806 (diff) | |
| download | rust-41856b0a0f0a612c1e64088baed5389d82f93157.tar.gz rust-41856b0a0f0a612c1e64088baed5389d82f93157.zip | |
allow negative numeric literals in `concat!`
Diffstat (limited to 'tests/ui/macros/issue-106837.rs')
| -rw-r--r-- | tests/ui/macros/issue-106837.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/ui/macros/issue-106837.rs b/tests/ui/macros/issue-106837.rs new file mode 100644 index 00000000000..7bbd3d68a90 --- /dev/null +++ b/tests/ui/macros/issue-106837.rs @@ -0,0 +1,10 @@ +fn main() { + concat!(-42); + concat!(-3.14); + + concat!(-"hello"); + //~^ ERROR expected a literal + + concat!(--1); + //~^ ERROR expected a literal +} |
