defatalize compile_declarative_macro
This commit is contained in:
parent
df9cec2df4
commit
1bfa2483d5
3 changed files with 54 additions and 16 deletions
|
|
@ -0,0 +1,8 @@
|
|||
fn main() {}
|
||||
|
||||
macro_rules! ambiguity {
|
||||
($($i:ident)* $j:ident) => {};
|
||||
}
|
||||
|
||||
ambiguity!(error); //~ ERROR local ambiguity
|
||||
ambiguity!(error); //~ ERROR local ambiguity
|
||||
|
|
@ -0,0 +1,14 @@
|
|||
error: local ambiguity: multiple parsing options: built-in NTs ident ('i') or ident ('j').
|
||||
--> $DIR/local-ambiguity-multiple-parsing-options.rs:7:12
|
||||
|
|
||||
LL | ambiguity!(error);
|
||||
| ^^^^^
|
||||
|
||||
error: local ambiguity: multiple parsing options: built-in NTs ident ('i') or ident ('j').
|
||||
--> $DIR/local-ambiguity-multiple-parsing-options.rs:8:12
|
||||
|
|
||||
LL | ambiguity!(error);
|
||||
| ^^^^^
|
||||
|
||||
error: aborting due to 2 previous errors
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue