mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-02 14:51:48 +00:00
Wrap macros in expr position in MacroExpr
node
This commit is contained in:
parent
5a6918f1c4
commit
872b7b9660
31 changed files with 642 additions and 548 deletions
|
@ -601,6 +601,17 @@ sdasdasdasdasd
|
|||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn noop_in_item_position_with_macro() {
|
||||
type_char_noop('{', r#"$0println!();"#);
|
||||
type_char_noop(
|
||||
'{',
|
||||
r#"
|
||||
fn main() $0println!("hello");
|
||||
}"#,
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn adds_closing_brace_for_use_tree() {
|
||||
type_char(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue