Use consistent prose for ::
Co-authored-by: Camille Gillot <gillot.camille@gmail.com>
This commit is contained in:
parent
7e323370b3
commit
26e299a4a7
3 changed files with 3 additions and 3 deletions
|
@ -2080,7 +2080,7 @@ impl<'a> Parser<'a> {
|
||||||
// Find a mistake like "foo::var:A".
|
// Find a mistake like "foo::var:A".
|
||||||
err.span_suggestion(
|
err.span_suggestion(
|
||||||
snapshot.token.span,
|
snapshot.token.span,
|
||||||
"you might have meant to write a path",
|
"write a path separator here",
|
||||||
"::".to_string(),
|
"::".to_string(),
|
||||||
Applicability::MaybeIncorrect,
|
Applicability::MaybeIncorrect,
|
||||||
);
|
);
|
||||||
|
|
|
@ -7,7 +7,7 @@ pub mod foo {
|
||||||
pub struct Foo {
|
pub struct Foo {
|
||||||
a: Vec<foo::bar:A>,
|
a: Vec<foo::bar:A>,
|
||||||
//~^ ERROR expected
|
//~^ ERROR expected
|
||||||
//~| HELP you might have meant to write a path
|
//~| HELP path separator
|
||||||
}
|
}
|
||||||
|
|
||||||
fn main() {}
|
fn main() {}
|
||||||
|
|
|
@ -5,7 +5,7 @@ LL | a: Vec<foo::bar:A>,
|
||||||
| ^
|
| ^
|
||||||
| |
|
| |
|
||||||
| expected one of `,` or `>`
|
| 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
|
error: aborting due to previous error
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue