review comments: change wording
This commit is contained in:
parent
248fe949af
commit
7b050fe831
@ -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`",
|
||||
);
|
||||
}
|
||||
}
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user