]> git.lizzy.rs Git - rust.git/commitdiff
Merge #11870
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>
Fri, 1 Apr 2022 15:33:01 +0000 (15:33 +0000)
committerGitHub <noreply@github.com>
Fri, 1 Apr 2022 15:33:01 +0000 (15:33 +0000)
11870: Recover from missing type annotation r=Veykril a=HKalbasi

We were missing the init expression in case of `let x: = 2`, which breaks type inference of that variable (previously x were `{unknown}`, now it is `i32`).

Co-authored-by: hkalbasi <hamidrezakalbasi@protonmail.com>

Trivial merge