diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2024-06-25 12:52:15 +1000 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2024-10-28 14:20:28 +1100 |
| commit | dd2b027d5d509dd95c5ef6f83ea6283f3e98d5ed (patch) | |
| tree | 7eab87c90c5c8919b4e05aae18e193a293f9f919 /tests/ui/macros/expr_2021_inline_const.rs | |
| parent | a201fab20881499d79e5694ee8f195ce50c5b724 (diff) | |
| download | rust-dd2b027d5d509dd95c5ef6f83ea6283f3e98d5ed.tar.gz rust-dd2b027d5d509dd95c5ef6f83ea6283f3e98d5ed.zip | |
Tweak more warnings.
Much like the previous commit. I think the removal of "the token" in each message is fine here. There are many more error messages that mention tokens without saying "the token" than those that do say it.
Diffstat (limited to 'tests/ui/macros/expr_2021_inline_const.rs')
| -rw-r--r-- | tests/ui/macros/expr_2021_inline_const.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/ui/macros/expr_2021_inline_const.rs b/tests/ui/macros/expr_2021_inline_const.rs index 39a542fe4d9..312256f1879 100644 --- a/tests/ui/macros/expr_2021_inline_const.rs +++ b/tests/ui/macros/expr_2021_inline_const.rs @@ -20,8 +20,8 @@ macro_rules! test { } fn main() { - m2021!(const { 1 }); //~ ERROR: no rules expected the token `const` - m2024!(const { 1 }); //[edi2021]~ ERROR: no rules expected the token `const` + m2021!(const { 1 }); //~ ERROR: no rules expected keyword `const` + m2024!(const { 1 }); //[edi2021]~ ERROR: no rules expected keyword `const` test!(expr); } |
