We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 14fc9ae commit f4618c8Copy full SHA for f4618c8
crates/ide/src/inlay_hints/adjustment.rs
@@ -509,6 +509,22 @@ fn never() -> ! {
509
510
fn or_else() {
511
let () = () else { return };
512
+}
513
+ "#,
514
+ )
515
+ }
516
+
517
+ #[test]
518
+ fn bug() {
519
+ check_with_config(
520
+ InlayHintsConfig { adjustment_hints: AdjustmentHints::Always, ..DISABLED_CONFIG },
521
+ r#"
522
+fn main() {
523
+ // These should be identical, but they are not...
524
525
+ let () = return;
526
+ let (): () = return;
527
+ //^^^^^^<never-to-any>
528
}
529
"#,
530
)
0 commit comments