about summary refs log tree commit diff
path: root/tests/ui/macros
diff options
context:
space:
mode:
authorMichael Goulet <michael@errs.io>2025-01-02 22:33:41 +0000
committerMichael Goulet <michael@errs.io>2025-01-02 23:39:17 +0000
commit0fd64efa2f3677ca0f1f0f970b31474a5218f0b8 (patch)
treef31d28ff83e33cc5fca9660c468e32c845bf6d16 /tests/ui/macros
parent7601adb4a06be26c5d240b7678ea1d0f661be5ed (diff)
downloadrust-0fd64efa2f3677ca0f1f0f970b31474a5218f0b8.tar.gz
rust-0fd64efa2f3677ca0f1f0f970b31474a5218f0b8.zip
Fix macro shenanigans
Diffstat (limited to 'tests/ui/macros')
-rw-r--r--tests/ui/macros/issue-69396-const-no-type-in-macro.rs2
-rw-r--r--tests/ui/macros/issue-69396-const-no-type-in-macro.stderr6
2 files changed, 2 insertions, 6 deletions
diff --git a/tests/ui/macros/issue-69396-const-no-type-in-macro.rs b/tests/ui/macros/issue-69396-const-no-type-in-macro.rs
index 45a30857413..c200a1fd0b4 100644
--- a/tests/ui/macros/issue-69396-const-no-type-in-macro.rs
+++ b/tests/ui/macros/issue-69396-const-no-type-in-macro.rs
@@ -4,7 +4,7 @@ macro_rules! suite {
             const A = "A".$fn();
             //~^ ERROR the name `A` is defined multiple times
             //~| ERROR missing type for `const` item
-            //~| ERROR the placeholder `_` is not allowed within types on item signatures for constants
+            //~| ERROR missing type for item
         )*
     }
 }
diff --git a/tests/ui/macros/issue-69396-const-no-type-in-macro.stderr b/tests/ui/macros/issue-69396-const-no-type-in-macro.stderr
index ef49a0bc2b5..4342d7d88f5 100644
--- a/tests/ui/macros/issue-69396-const-no-type-in-macro.stderr
+++ b/tests/ui/macros/issue-69396-const-no-type-in-macro.stderr
@@ -27,7 +27,7 @@ LL | | }
    |
    = note: this error originates in the macro `suite` (in Nightly builds, run with -Z macro-backtrace for more info)
 
-error[E0121]: the placeholder `_` is not allowed within types on item signatures for constants
+error[E0121]: missing type for item
   --> $DIR/issue-69396-const-no-type-in-macro.rs:4:20
    |
 LL |               const A = "A".$fn();
@@ -40,10 +40,6 @@ LL | | }
    | |_- in this macro invocation
    |
    = note: this error originates in the macro `suite` (in Nightly builds, run with -Z macro-backtrace for more info)
-help: replace this with a fully-specified type
-   |
-LL |             const Abool = "A".$fn();
-   |                    ++++
 
 error: aborting due to 3 previous errors