1
Fork 0

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) => { Ok(where_predicate) => {
self.struct_span_err( self.struct_span_err(
where_predicate.span(), 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") .span_label(where_predicate.span(), "belongs in `where` clause")
.emit(); .emit();

View file

@ -3,7 +3,7 @@ trait Tr {
} }
struct Bar<'a, Item: Tr, <Item as Tr>::TrSubtype: 'a> { 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: Item,
item_sub: &'a <Item as Tr>::TrSubtype, 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 --> $DIR/assoc-type-in-type-arg.rs:5:26
| |
LL | struct Bar<'a, Item: Tr, <Item as Tr>::TrSubtype: 'a> { LL | struct Bar<'a, Item: Tr, <Item as Tr>::TrSubtype: 'a> {