fix a bad error message for relative paths are not supported in visibilities
error
This commit is contained in:
parent
d00e77078c
commit
c4b83362c0
3 changed files with 3 additions and 3 deletions
|
@ -632,7 +632,7 @@ impl<'a> Resolver<'a> {
|
|||
VisResolutionError::Relative2018(span, path) => {
|
||||
let mut err = self.session.struct_span_err(
|
||||
span,
|
||||
"relative paths are not supported in visibilities on 2018 edition",
|
||||
"relative paths are not supported in visibilities in 2018 edition or later",
|
||||
);
|
||||
err.span_suggestion(
|
||||
path.span,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue