Add a "bug" test for adjustment hints to check for status quo

This commit is contained in:
Maybe Waffle 2022-12-21 15:31:57 +00:00
parent 12b7f9f7bf
commit a9676cfbe3

View File

@ -609,4 +609,20 @@ fn by_ref(&self) {}
"#,
);
}
#[test]
fn bug() {
check_with_config(
InlayHintsConfig { adjustment_hints: AdjustmentHints::Always, ..DISABLED_CONFIG },
r#"
fn main() {
// These should be identical, but they are not...
let () = return;
let (): () = return;
//^^^^^^<never-to-any>
}
"#,
)
}
}