review comments: wording
This commit is contained in:
parent
60560bc2a2
commit
0f2f16db53
@ -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();
|
||||
|
@ -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,
|
||||
}
|
||||
|
@ -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> {
|
||||
|
Loading…
Reference in New Issue
Block a user