diff options
| author | Mazdak Farrokhzad <twingoow@gmail.com> | 2020-04-06 04:24:15 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-04-06 04:24:15 +0200 |
| commit | eea91c308f70d6715f973bdd0352723d672f3b1c (patch) | |
| tree | 3937c59dc679c2aac715c53734fc4d0606c3b9bc /src/test/ui/parser | |
| parent | 83f8c02eb92b0dfc46ae27cb71421d7bbcd7f30f (diff) | |
| parent | 17a95232b35766a24d2575c7fa1ef52c9fbf97de (diff) | |
| download | rust-eea91c308f70d6715f973bdd0352723d672f3b1c.tar.gz rust-eea91c308f70d6715f973bdd0352723d672f3b1c.zip | |
Rollup merge of #70519 - estebank:constraints-before-args-spans, r=Centril
Tweak output of type params and constraints in the wrong order r? @Centril @varkor
Diffstat (limited to 'src/test/ui/parser')
| -rw-r--r-- | src/test/ui/parser/issue-32214.stderr | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/test/ui/parser/issue-32214.stderr b/src/test/ui/parser/issue-32214.stderr index 742f4fdc38b..bc61b3b74e2 100644 --- a/src/test/ui/parser/issue-32214.stderr +++ b/src/test/ui/parser/issue-32214.stderr @@ -4,7 +4,12 @@ error: generic arguments must come before the first constraint LL | pub fn test<W, I: Trait<Item=(), W> >() {} | ------- ^ generic argument | | - | the first constraint is provided here + | constraint + | +help: move the constraint after the generic argument + | +LL | pub fn test<W, I: Trait<W, Item = ()> >() {} + | ^^^^^^^^^^^^^^ error: aborting due to previous error |
