Open ptal opened 10 years ago
We will keep this kind of test simple in a first time because we don't know how the Rust procedural macros will evolve and what kind of support they could offer later. We propose the following:
#![compile(error, UnreachableRule)]
error
can be replaced by warning
or note
or help
. This follows the error level in rustc_errors::Level
.
It can also tests for parse errors, therefore we force global attribute to be declared in the beginning.
We want to add static analysis, before that, we should be able to test our grammar: