yassun7010 / serde_valid

JSON Schema based validation tool using serde.
MIT License
46 stars 10 forks source link

Raw identifier still not working #17

Closed Tenshock closed 1 year ago

Tenshock commented 1 year ago

Hello, thanks for the fast update refering https://github.com/yassun4dev/serde_valid/issues/13!

I checked the fix and when I run your test I have the following error:

error: expected expression, found keyword `type`
    |
157 |     #[rule(sample_rule(type))]
    |                        ^^^^ expected expression

error: proc-macro derive produced unparsable tokens
    |
153 |     #[derive(Validate)]
    |              ^^^^^^^^

error: could not compile `test_app` (lib test) due to 2 previous errors

my version:

Did I miss something?

yassun7010 commented 1 year ago

My test case is working well in rustc 1.71.

Do you get the same result when you run the same code?

yassun7010 commented 1 year ago

I will close this Issue until someone else encounters the same problem.