Skip to content
New issue

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

Attribute bound does not work with stringify! #98

Open
entropylost opened this issue Aug 21, 2021 · 0 comments
Open

Attribute bound does not work with stringify! #98

entropylost opened this issue Aug 21, 2021 · 0 comments
Labels
bug The crate does not work as expected

Comments

@entropylost
Copy link

entropylost commented Aug 21, 2021

Describe the bug

Using macros, including stringify! as arguments to the bound= errors.

To Reproduce

Compile

#[derivative(PartialEq(bound=stringify!()))]
struct Foo();

Errors

error: invalid attribute: expected literal

Version (please complete the following information):

rustup --version
rustup 1.24.3 (ce5817a94 2021-05-31)
cargo --version
cargo 1.56.0-nightly (cc17afbb0 2021-08-02)
rustc --version
rustc 1.56.0-nightly (ae90dcf02 2021-08-09)
  • Version of derivative: 2.2.0
@entropylost entropylost added the bug The crate does not work as expected label Aug 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug The crate does not work as expected
Projects
None yet
Development

No branches or pull requests

1 participant