Skip to content

Commit 0f2f16d

Browse files
committed
review comments: wording
1 parent 60560bc commit 0f2f16d

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/libsyntax/parse/parser/generics.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ impl<'a> Parser<'a> {
107107
Ok(where_predicate) => {
108108
self.struct_span_err(
109109
where_predicate.span(),
110-
"associated type bounds do not belong here",
110+
"bounds on associated types do not belong here",
111111
)
112112
.span_label(where_predicate.span(), "belongs in `where` clause")
113113
.emit();

src/test/ui/parser/assoc-type-in-type-arg.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ trait Tr {
33
}
44

55
struct Bar<'a, Item: Tr, <Item as Tr>::TrSubtype: 'a> {
6-
//~^ ERROR associated type bounds do not belong here
6+
//~^ ERROR bounds on associated types do not belong here
77
item: Item,
88
item_sub: &'a <Item as Tr>::TrSubtype,
99
}

src/test/ui/parser/assoc-type-in-type-arg.stderr

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

0 commit comments

Comments
 (0)