From 0f2f16db5364663b4a2f092bba61dc3b056902e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Esteban=20K=C3=BCber?= Date: Sat, 21 Sep 2019 18:57:37 -0700 Subject: [PATCH] review comments: wording --- src/libsyntax/parse/parser/generics.rs | 2 +- src/test/ui/parser/assoc-type-in-type-arg.rs | 2 +- src/test/ui/parser/assoc-type-in-type-arg.stderr | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/libsyntax/parse/parser/generics.rs b/src/libsyntax/parse/parser/generics.rs index 1ffdda19c80..2ecd9cca3c6 100644 --- a/src/libsyntax/parse/parser/generics.rs +++ b/src/libsyntax/parse/parser/generics.rs @@ -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(); diff --git a/src/test/ui/parser/assoc-type-in-type-arg.rs b/src/test/ui/parser/assoc-type-in-type-arg.rs index 09765f01371..000956ea24f 100644 --- a/src/test/ui/parser/assoc-type-in-type-arg.rs +++ b/src/test/ui/parser/assoc-type-in-type-arg.rs @@ -3,7 +3,7 @@ trait Tr { } struct Bar<'a, Item: 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 ::TrSubtype, } diff --git a/src/test/ui/parser/assoc-type-in-type-arg.stderr b/src/test/ui/parser/assoc-type-in-type-arg.stderr index 06addb02417..b637702f21e 100644 --- a/src/test/ui/parser/assoc-type-in-type-arg.stderr +++ b/src/test/ui/parser/assoc-type-in-type-arg.stderr @@ -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, ::TrSubtype: 'a> {