mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 06:11:35 +00:00
By pass unbind $var while mbe expanding
This commit is contained in:
parent
e8e46100d6
commit
31909cc7d7
3 changed files with 39 additions and 7 deletions
|
@ -952,7 +952,7 @@ macro_rules! foo {
|
|||
MacroKind::Items,
|
||||
&rules,
|
||||
r#"foo!(x,y, 1);"#,
|
||||
r#"macro_rules ! bar {(bi : ident) => {fn bi () -> u8 {1}}} bar ! (x) ; fn y () -> u8 {1}"#,
|
||||
r#"macro_rules ! bar {($ bi : ident) => {fn $ bi () -> u8 {1}}} bar ! (x) ; fn y () -> u8 {1}"#,
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue