37a11a96a1
* Do not emit unnecessary E0308 after E0070 * Show fewer errors on `while let` missing `let` * Hide redundant E0308 on `while let` missing `let` * Point at binding definition when possible on invalid assignment * do not point at closure twice * do not suggest `if let` for literals in lhs * account for parameter types
9 lines
240 B
Rust
9 lines
240 B
Rust
fn main() {
|
|
let mut x //~ NOTE expected due to the type of this binding
|
|
=
|
|
2; //~ NOTE expected due to this value
|
|
x = 5.0;
|
|
//~^ ERROR mismatched types
|
|
//~| NOTE expected integer, found floating-point number
|
|
}
|