]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/parser/issue-32214.stderr
New upstream version 1.44.1+dfsg1
[rustc.git] / src / test / ui / parser / issue-32214.stderr
index 08b230a14f50ebc8ba6213b4fb9997548a029da4..bc61b3b74e2175598aadd89cfe0b4dd49688b0d1 100644 (file)
@@ -1,10 +1,15 @@
-error: associated type bindings must be declared after generic parameters
-  --> $DIR/issue-32214.rs:3:25
+error: generic arguments must come before the first constraint
+  --> $DIR/issue-32214.rs:3:34
    |
 LL | pub fn test<W, I: Trait<Item=(), W> >() {}
-   |                         -------^^^
+   |                         -------  ^ generic argument
    |                         |
-   |                         this associated type binding should be moved after the generic parameters
+   |                         constraint
+   |
+help: move the constraint after the generic argument
+   |
+LL | pub fn test<W, I: Trait<W, Item = ()> >() {}
+   |                        ^^^^^^^^^^^^^^
 
 error: aborting due to previous error