]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/macros/trace_faulty_macros.stderr
New upstream version 1.55.0+dfsg1
[rustc.git] / src / test / ui / macros / trace_faulty_macros.stderr
index 96e7d61398b7e052230f3fe2ecbc2ee3c1d00164..38affde5f6c3301ac07522fe34fea420cb56c99b 100644 (file)
@@ -60,11 +60,13 @@ LL |     let a = pat_macro!();
    |
    = note: this error originates in the macro `pat_macro` (in Nightly builds, run with -Z macro-backtrace for more info)
 
-error[E0774]: `derive` may only be applied to structs, enums and unions
+error[E0774]: `derive` may only be applied to `struct`s, `enum`s and `union`s
   --> $DIR/trace_faulty_macros.rs:42:1
    |
 LL | #[derive(Debug)]
-   | ^^^^^^^^^^^^^^^^
+   | ^^^^^^^^^^^^^^^^ not applicable here
+LL | fn use_derive_macro_as_attr() {}
+   | -------------------------------- not a `struct`, `enum` or `union`
 
 note: trace_macro
   --> $DIR/trace_faulty_macros.rs:36:13