review comments: wording
This commit is contained in:
parent
60560bc2a2
commit
0f2f16db53
3 changed files with 3 additions and 3 deletions
|
@ -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();
|
||||||
|
|
|
@ -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,
|
||||||
}
|
}
|
||||||
|
|
|
@ -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> {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue