summaryrefslogtreecommitdiff
path: root/tests/ui/macros
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2023-04-28 07:34:02 +0200
committerGitHub <noreply@github.com>2023-04-28 07:34:02 +0200
commit29f5ec364060c5744430322bb88a65b017eda79c (patch)
tree22fb8845f22d2c0cd071bcfcf5361a82bfa888a2 /tests/ui/macros
parentcf911ac7578b7079f8bf2944c841c39510967b7b (diff)
parent1ce9d7254e3e890a4b60846072e5731231f7e030 (diff)
downloadrust-29f5ec364060c5744430322bb88a65b017eda79c.tar.gz
Rollup merge of #110873 - clubby789:migrate-rustc-parse-trivial, r=compiler-errors
Migrate trivially translatable `rustc_parse` diagnostics cc #100717 Migrate diagnostics in `rustc_parse` which are emitted in a single statement. I worked on this by expanding the lint introduced in #108760, although that isn't included here as there is much more work to be done to satisfy it
Diffstat (limited to 'tests/ui/macros')
-rw-r--r--tests/ui/macros/missing-bang-in-decl.stderr14
1 files changed, 12 insertions, 2 deletions
diff --git a/tests/ui/macros/missing-bang-in-decl.stderr b/tests/ui/macros/missing-bang-in-decl.stderr
index dfabafb0a7a..aa78c9a6906 100644
--- a/tests/ui/macros/missing-bang-in-decl.stderr
+++ b/tests/ui/macros/missing-bang-in-decl.stderr
@@ -2,13 +2,23 @@ error: expected `!` after `macro_rules`
--> $DIR/missing-bang-in-decl.rs:5:1
|
LL | macro_rules foo {
- | ^^^^^^^^^^^ help: add a `!`: `macro_rules!`
+ | ^^^^^^^^^^^
+ |
+help: add a `!`
+ |
+LL | macro_rules! foo {
+ | +
error: expected `!` after `macro_rules`
--> $DIR/missing-bang-in-decl.rs:10:1
|
LL | macro_rules bar! {
- | ^^^^^^^^^^^ help: add a `!`: `macro_rules!`
+ | ^^^^^^^^^^^
+ |
+help: add a `!`
+ |
+LL | macro_rules! bar! {
+ | +
error: macro names aren't followed by a `!`
--> $DIR/missing-bang-in-decl.rs:10:16