about summary refs log tree commit diff
path: root/src/test/ui/parser
diff options
context:
space:
mode:
authorEsteban Küber <esteban@kuber.com.ar>2020-03-29 11:31:58 -0700
committerEsteban Küber <esteban@kuber.com.ar>2020-03-29 11:31:58 -0700
commitc2e0e71a0943b16e6e6f8aad88aaea7b6f60dea5 (patch)
tree6bcbda0b1810e9378ffd2dcd5199c811243ce39e /src/test/ui/parser
parentdcb4e817bc8469a0a47e0eaecdf1cf0ea980a496 (diff)
downloadrust-c2e0e71a0943b16e6e6f8aad88aaea7b6f60dea5.tar.gz
rust-c2e0e71a0943b16e6e6f8aad88aaea7b6f60dea5.zip
Suggest correct order for arguments when encountering early constraints
When encountering constraints before type arguments or lifetimes,
suggest the correct order.
Diffstat (limited to 'src/test/ui/parser')
-rw-r--r--src/test/ui/parser/issue-32214.stderr6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/test/ui/parser/issue-32214.stderr b/src/test/ui/parser/issue-32214.stderr
index 959a1ab121b..8daf76993bc 100644
--- a/src/test/ui/parser/issue-32214.stderr
+++ b/src/test/ui/parser/issue-32214.stderr
@@ -6,10 +6,10 @@ LL | pub fn test<W, I: Trait<Item=(), W> >() {}
    |                         |
    |                         the constraint is provided here
    |
-help: move the constraints after the generic arguments
+help: move the constraint after the generic argument
    |
-LL | pub fn test<W, I: Trait<W, Item=()> >() {}
-   |                        --^^^^^^^
+LL | pub fn test<W, I: Trait<W, Item = ()> >() {}
+   |                        ^^^^^^^^^^^^^^
 
 error: aborting due to previous error