review comments: wording

This commit is contained in:
Esteban Küber 2019-09-21 18:57:37 -07:00
parent 60560bc2a2
commit 0f2f16db53
3 changed files with 3 additions and 3 deletions

View File

@ -107,7 +107,7 @@ impl<'a> Parser<'a> {
Ok(where_predicate) => {
self.struct_span_err(
where_predicate.span(),
"associated type bounds do not belong here",
"bounds on associated types do not belong here",
)
.span_label(where_predicate.span(), "belongs in `where` clause")
.emit();

View File

@ -3,7 +3,7 @@ trait Tr {
}
struct Bar<'a, Item: Tr, <Item as Tr>::TrSubtype: 'a> {
//~^ ERROR associated type bounds do not belong here
//~^ ERROR bounds on associated types do not belong here
item: Item,
item_sub: &'a <Item as Tr>::TrSubtype,
}

View File

@ -1,4 +1,4 @@
error: associated type bounds do not belong here
error: bounds on associated types do not belong here
--> $DIR/assoc-type-in-type-arg.rs:5:26
|
LL | struct Bar<'a, Item: Tr, <Item as Tr>::TrSubtype: 'a> {