granite-rust/src/test/ui/suggestions/issue-61226.fixed
Esteban Küber 6ed06b2ba9 Reduce verbosity of some type ascription errors
* 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
2020-07-31 11:29:15 -07:00

6 lines
119 B
Rust

// run-rustfix
struct X {}
fn main() {
let _ = vec![X {}]; //…
//~^ ERROR expected value, found struct `X`
}