review comments: change wording

This commit is contained in:
Esteban Küber 2019-04-18 09:43:15 -07:00
parent 248fe949af
commit 7b050fe831
4 changed files with 5 additions and 5 deletions

View file

@ -176,7 +176,7 @@ impl<'a> Resolver<'a> {
} else {
err.span_label(
span,
format!("a field by this name exists in `Self::{}`", path_str),
"a field by this name exists in `Self`",
);
}
}

View file

@ -2,7 +2,7 @@ error[E0425]: cannot find value `banana` in this scope
--> $DIR/issue-60057.rs:8:21
|
LL | banana: banana
| ^^^^^^ a field by this name exists in `Self::banana`
| ^^^^^^ a field by this name exists in `Self`
error[E0425]: cannot find value `banana` in this scope
--> $DIR/issue-60057.rs:14:21

View file

@ -20,7 +20,7 @@ error[E0425]: cannot find value `whiskers` in this scope
--> $DIR/issue-2356.rs:39:5
|
LL | whiskers -= other;
| ^^^^^^^^ a field by this name exists in `Self::whiskers`
| ^^^^^^^^ a field by this name exists in `Self`
error[E0425]: cannot find function `shave` in this scope
--> $DIR/issue-2356.rs:41:5
@ -86,7 +86,7 @@ error[E0425]: cannot find value `whiskers` in this scope
--> $DIR/issue-2356.rs:84:5
|
LL | whiskers = 4;
| ^^^^^^^^ a field by this name exists in `Self::whiskers`
| ^^^^^^^^ a field by this name exists in `Self`
error[E0425]: cannot find function `purr_louder` in this scope
--> $DIR/issue-2356.rs:86:5

View file

@ -2,7 +2,7 @@ error[E0425]: cannot find value `cx` in this scope
--> $DIR/unresolved_static_type_field.rs:9:11
|
LL | f(cx);
| ^^ a field by this name exists in `Self::cx`
| ^^ a field by this name exists in `Self`
error: aborting due to previous error