mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-18 18:04:13 +00:00
reword label as per review
This commit is contained in:
parent
941b2e32ad
commit
bebecf850a
@ -204,7 +204,7 @@ fn resolve_struct_error<'sess, 'a>(resolver: &'sess Resolver,
|
||||
}) {
|
||||
err.span_label(
|
||||
reduce_impl_span_to_impl_keyword(cm, impl_span),
|
||||
"`Self` type implicitly declared here, on the `impl`",
|
||||
"`Self` type implicitly declared here, by this `impl`",
|
||||
);
|
||||
}
|
||||
match (maybe_trait_defid, maybe_impl_defid) {
|
||||
|
@ -24,7 +24,7 @@ error[E0401]: can't use type parameters from outer function
|
||||
--> $DIR/E0401.rs:32:25
|
||||
|
|
||||
LL | impl<T> Iterator for A<T> {
|
||||
| ---- `Self` type implicitly declared here, on the `impl`
|
||||
| ---- `Self` type implicitly declared here, by this `impl`
|
||||
...
|
||||
LL | fn helper(sel: &Self) -> u8 { //~ ERROR E0401
|
||||
| ^^^^
|
||||
|
@ -11,7 +11,7 @@
|
||||
struct A;
|
||||
|
||||
impl A {
|
||||
//~^ NOTE `Self` type implicitly declared here, on the `impl`
|
||||
//~^ NOTE `Self` type implicitly declared here, by this `impl`
|
||||
fn banana(&mut self) {
|
||||
fn peach(this: &Self) {
|
||||
//~^ ERROR can't use type parameters from outer function
|
||||
|
@ -2,7 +2,7 @@ error[E0401]: can't use type parameters from outer function
|
||||
--> $DIR/use-self-in-inner-fn.rs:16:25
|
||||
|
|
||||
LL | impl A {
|
||||
| ---- `Self` type implicitly declared here, on the `impl`
|
||||
| ---- `Self` type implicitly declared here, by this `impl`
|
||||
...
|
||||
LL | fn peach(this: &Self) {
|
||||
| ^^^^
|
||||
|
Loading…
Reference in New Issue
Block a user