Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/ide/src/typing.rs')
| -rw-r--r-- | crates/ide/src/typing.rs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/crates/ide/src/typing.rs b/crates/ide/src/typing.rs index 95a774df05..0095012791 100644 --- a/crates/ide/src/typing.rs +++ b/crates/ide/src/typing.rs @@ -602,6 +602,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( '{', |