about summary refs log tree commit diff
path: root/tests/ui/attributes/malformed-attrs.stderr
diff options
context:
space:
mode:
authorJonathan Brouwer <jonathantbrouwer@gmail.com>2025-07-12 17:34:43 +0200
committerJonathan Brouwer <jonathantbrouwer@gmail.com>2025-07-23 13:33:23 +0200
commit3303534dc8825258f8a5d3a1b1e4572d55cccd9a (patch)
treeb0b68efe9eeaba7f7b743aa0dd7e5d60f813ff8a /tests/ui/attributes/malformed-attrs.stderr
parenta460b46d0f7d95a0a07bad444606f6fd53aea62c (diff)
downloadrust-3303534dc8825258f8a5d3a1b1e4572d55cccd9a.tar.gz
rust-3303534dc8825258f8a5d3a1b1e4572d55cccd9a.zip
Update uitest stderrs
Signed-off-by: Jonathan Brouwer <jonathantbrouwer@gmail.com>
Diffstat (limited to 'tests/ui/attributes/malformed-attrs.stderr')
-rw-r--r--tests/ui/attributes/malformed-attrs.stderr21
1 files changed, 6 insertions, 15 deletions
diff --git a/tests/ui/attributes/malformed-attrs.stderr b/tests/ui/attributes/malformed-attrs.stderr
index de53af851a3..7ae24db8b5f 100644
--- a/tests/ui/attributes/malformed-attrs.stderr
+++ b/tests/ui/attributes/malformed-attrs.stderr
@@ -154,21 +154,6 @@ error: malformed `no_link` attribute input
 LL | #[no_link()]
    | ^^^^^^^^^^^^ help: must be of the form: `#[no_link]`
 
-error: malformed `macro_use` attribute input
-  --> $DIR/malformed-attrs.rs:210:1
-   |
-LL | #[macro_use = 1]
-   | ^^^^^^^^^^^^^^^^
-   |
-help: the following are the possible correct uses
-   |
-LL - #[macro_use = 1]
-LL + #[macro_use(name1, name2, ...)]
-   |
-LL - #[macro_use = 1]
-LL + #[macro_use]
-   |
-
 error: malformed `macro_export` attribute input
   --> $DIR/malformed-attrs.rs:215:1
    |
@@ -567,6 +552,12 @@ LL | #[non_exhaustive = 1]
    | |                didn't expect any arguments here
    | help: must be of the form: `#[non_exhaustive]`
 
+error: valid forms for the attribute are `#[macro_use(name1, name2, ...)]` and `#[macro_use]`
+  --> $DIR/malformed-attrs.rs:210:1
+   |
+LL | #[macro_use = 1]
+   | ^^^^^^^^^^^^^^^^
+
 error[E0565]: malformed `type_const` attribute input
   --> $DIR/malformed-attrs.rs:144:5
    |