Open gregtwice opened 3 weeks ago
It compiles fine when removing the "00_" part of the file, or when removing the macros. So I guess that the issue is due to the fact that my filename is not a correct identifier. Do you think the error message could be improved? Or is it outside the scope of the crate?
Thank you for your consideration.
I believe we should allow using filenames that are not correct identifiers.
PS. also the error message should be better. panic!("`{}` is not a valid identifier", input)
improves it.
I have a file name 00_Hello_world in my bin folder which contains the following code:
When compiling I get the following error:
It compiles fine when removing the "00_" part of the file, or when removing the macros. So I guess that the issue is due to the fact that my filename is not a correct identifier. Do you think the error message could be improved? Or is it outside the scope of the crate?
Thank you for your consideration.