recover from missing type annotation

This commit is contained in:
hkalbasi 2022-04-01 17:20:54 +04:30
parent 244ee65bbe
commit 049f0a6d2c
2 changed files with 20 additions and 0 deletions

View file

@ -2556,6 +2556,20 @@ fn f() {
)
}
#[test]
fn infer_missing_type() {
check_types(
r#"
struct S;
fn f() {
let s: = S;
//^ S
}
"#,
);
}
#[test]
fn infer_type_alias_variant() {
check_infer(