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
It was controversial experiment from the very beginning. At this point we want to get rid of it.
See also: https://www.reddit.com/r/rust/comments/14j7w46/comment/jpzag6f/?utm_source=reddit&utm_medium=web2x&context=3
At the moment in version 0.3.1 it's possible to derive traits with #[derive(*)], where * means traits that make sense "by default".
#[derive(*)]
*
You can find those traits be search for fn unfold_asterisk_traits in the code.
fn unfold_asterisk_traits
nutype_macros
derive
make test
I have the following code:
#[nutype()] #[derive(*)] pub struct Name(String);
It does not compile. Th error message points to
#[derive(*)] ^
The same applies if the inner type is integer of float.
The text was updated successfully, but these errors were encountered:
Addressed in #60
Sorry, something went wrong.
No branches or pull requests
It was controversial experiment from the very beginning.
At this point we want to get rid of it.
See also:
https://www.reddit.com/r/rust/comments/14j7w46/comment/jpzag6f/?utm_source=reddit&utm_medium=web2x&context=3
Context
At the moment in version 0.3.1 it's possible to derive traits with
#[derive(*)]
, where*
means traits that make sense "by default".You can find those traits be search for
fn unfold_asterisk_traits
in the code.Spec
nutype_macros
*
inderive
and the logic that unfolds it.#[derive(*)]
is no longer possible.make test
)Acceptance Criteria
I have the following code:
It does not compile. Th error message points to
The same applies if the inner type is integer of float.
The text was updated successfully, but these errors were encountered: