Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/ide/src/inlay_hints/binding_mode.rs')
-rw-r--r--crates/ide/src/inlay_hints/binding_mode.rs14
1 files changed, 8 insertions, 6 deletions
diff --git a/crates/ide/src/inlay_hints/binding_mode.rs b/crates/ide/src/inlay_hints/binding_mode.rs
index e8d305afb3..63a83ea335 100644
--- a/crates/ide/src/inlay_hints/binding_mode.rs
+++ b/crates/ide/src/inlay_hints/binding_mode.rs
@@ -169,13 +169,14 @@ fn __(
}
match &(0,) {
(x,) | (x,) => (),
- //^^^^^^^^^^^)
- //^^^^^^^^^^^&(
+ //^^^^&
//^ ref
//^ ref
+ //^^^^&
((x,) | (x,)) => (),
- //^^^^^^^^^^^^^&
+ //^^^^&
//^ ref
+ //^^^^&
//^ ref
}
match &mut (0,) {
@@ -183,7 +184,8 @@ fn __(
//^^^^ &mut
//^ ref mut
}
-}"#,
+}
+"#,
);
}
@@ -217,8 +219,8 @@ fn main() {
expect![[r#"
fn main() {
match &(0,) {
- &(&((ref x,) | (ref x,))) => (),
- &((ref x,) | (ref x,)) => (),
+ &(ref x,) | &(ref x,) => (),
+ (&(ref x,) | &(ref x,)) => (),
}
}
"#]],