
* Deduplicate type ascription LHS errors * Remove duplicated `:` -> `::` suggestion from parse error * Tweak wording to be more accurate * Modify `current_type_ascription` to reduce span wrangling * remove now unnecessary match arm * Add run-rustfix to appropriate tests
6 lines
119 B
Rust
6 lines
119 B
Rust
// run-rustfix
|
|
struct X {}
|
|
fn main() {
|
|
let _ = vec![X {}]; //…
|
|
//~^ ERROR expected value, found struct `X`
|
|
}
|