提交 26e299a4 编写于 作者: M Michael Howell

Use consistent prose for `::`

Co-authored-by: NCamille Gillot <gillot.camille@gmail.com>
上级 7e323370
......@@ -2080,7 +2080,7 @@ pub fn recover_const_arg(
// 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,
);
......
......@@ -7,7 +7,7 @@ pub mod bar {
pub struct Foo {
a: Vec<foo::bar:A>,
//~^ ERROR expected
//~| HELP you might have meant to write a path
//~| HELP path separator
}
fn main() {}
......@@ -5,7 +5,7 @@ LL | a: Vec<foo::bar:A>,
| ^
| |
| 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
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册