yassun7010/serde_valid

Raw identifier still not working

Tenshock opened this issue · 2 comments

Hello, thanks for the fast update refering #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:

  • rustc 1.71.0 (8ede3aae2 2023-07-12)
  • serde_valid = "0.16.3"

Did I miss something?

My test case is working well in rustc 1.71.

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

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