diff options
author | Emil Lauridsen <[email protected]> | 2020-05-10 15:20:13 +0100 |
---|---|---|
committer | Emil Lauridsen <[email protected]> | 2020-05-10 15:24:04 +0100 |
commit | 85d44cad45761a55741ff406e23f2e40b0f24b88 (patch) | |
tree | 3557b041edfbab6a1c85a1701d7d322b829a43a6 /crates/ra_syntax/src/ast/edit.rs | |
parent | 4578154b608fa075595103d0c933da60d55b25c8 (diff) |
infer: Make expected rhs type for plain assign the lhs type
This fixes an issue where the following code sample would fail to infer
the type contained in the option:
```rust
fn main() {
let mut end = None; // TODO: Fix inference for this in RA
loop {
end = Some(true);
}
}
```
Diffstat (limited to 'crates/ra_syntax/src/ast/edit.rs')
0 files changed, 0 insertions, 0 deletions