We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
If you apply the #[wickerman] attribute to an item that is not a struct, you should see an error:
#[wickerman]
#[wickerman] enum Foo { // error: this is not a struct Bar, Baz, }
However, if that item has doc-comments, you won't see the error:
/// This doesn't generate an error #[wickerman] enum Foo { Bar, Baz, }
The text was updated successfully, but these errors were encountered:
I don't think this is a wickerman bug. Should be fixed by rust-lang/rust#47941.
Sorry, something went wrong.
I agree, when I add an enum to the existing example:
/// This is a doc-comment #[wickerman] enum SpamOrEggs { Spam, Eggs, }
I get this error message:
error: This is not a struct --> <macro expansion>:1:1 | 1 | /// This is a doc-comment | ^^^^^^^^^^^^^^^^^^^^^^^^^
which has the wrong filename and line number, just like Sean pointed out.
No branches or pull requests
If you apply the
#[wickerman]
attribute to an item that is not a struct, you should see an error:However, if that item has doc-comments, you won't see the error:
The text was updated successfully, but these errors were encountered: