Skip to content

Commit f50da2e

Browse files
committed
fix derive-bad.stderr
1 parent eff6598 commit f50da2e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/test/ui/proc-macro/derive-bad.stderr

+4
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ LL | #[derive(A)]
55
| ^ expected `:`
66
|
77
= note: this error originates in the derive macro `A` (in Nightly builds, run with -Z macro-backtrace for more info)
8+
help: consider using `enum` instead of `struct`
9+
|
10+
LL | #[derive(enum)]
11+
| ~~~~
812

913
error: proc-macro derive produced unparseable tokens
1014
--> $DIR/derive-bad.rs:6:10

0 commit comments

Comments
 (0)