We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 12b7f9f commit a9676cfCopy full SHA for a9676cf
crates/ide/src/inlay_hints/adjustment.rs
@@ -609,4 +609,20 @@ fn a() {
609
"#,
610
);
611
}
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
+ }
628
0 commit comments