Co-authored-by: Camille Gillot <gillot.camille@gmail.com>
// Find a mistake like "foo::var:A".
err.span_suggestion(
snapshot.token.span,
- "you might have meant to write a path",
+ "write a path separator here",
"::".to_string(),
Applicability::MaybeIncorrect,
);
pub struct Foo {
a: Vec<foo::bar:A>,
//~^ ERROR expected
- //~| HELP you might have meant to write a path
+ //~| HELP path separator
}
fn main() {}
| ^
| |
| expected one of `,` or `>`
- | help: you might have meant to write a path: `::`
+ | help: write a path separator here: `::`
error: aborting due to previous error