Skip to content

fix(prost-derive): support unit structs in Message derive - #1452

Open
iMostfa wants to merge 1 commit into
tokio-rs:masterfrom
iMostfa:fix/unit-struct-message-derive
Open

fix(prost-derive): support unit structs in Message derive#1452
iMostfa wants to merge 1 commit into
tokio-rs:masterfrom
iMostfa:fix/unit-struct-message-derive

Conversation

@iMostfa

@iMostfa iMostfa commented Aug 5, 2026

Copy link
Copy Markdown

Deriving Message on a unit struct (struct Foo;) failed to compile with error[E0618]: expected function, found Foo, while the equivalent struct Foo {} worked.

Fixes #1424

Deriving `Message` on a unit struct (`struct Foo;`) failed to compile
with `error[E0618]: expected function, found Foo`, while the equivalent
`struct Foo {}` worked.

Fixes tokio-rs#1424
@iMostfa

iMostfa commented Aug 5, 2026

Copy link
Copy Markdown
Author

Hi, @LucioFranco Can i ask for a review here ? Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Struct with no body fails compilation

1 participant