Skip to content

Commit a9676cf

Browse files
committed
Add a "bug" test for adjustment hints to check for status quo
1 parent 12b7f9f commit a9676cf

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

crates/ide/src/inlay_hints/adjustment.rs

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -609,4 +609,20 @@ fn a() {
609609
"#,
610610
);
611611
}
612+
613+
#[test]
614+
fn bug() {
615+
check_with_config(
616+
InlayHintsConfig { adjustment_hints: AdjustmentHints::Always, ..DISABLED_CONFIG },
617+
r#"
618+
fn main() {
619+
// These should be identical, but they are not...
620+
621+
let () = return;
622+
let (): () = return;
623+
//^^^^^^<never-to-any>
624+
}
625+
"#,
626+
)
627+
}
612628
}

0 commit comments

Comments
 (0)