2020-03-27 07:39:10 +01:00
|
|
|
error: generic arguments must come before the first constraint
|
|
|
|
--> $DIR/issue-32214.rs:3:34
|
2018-10-20 23:36:17 +03:00
|
|
|
|
|
2019-01-06 18:33:05 +03:00
|
|
|
LL | pub fn test<W, I: Trait<Item=(), W> >() {}
|
2020-03-27 21:52:09 +01:00
|
|
|
| ------- ^ generic argument
|
2020-03-27 07:39:10 +01:00
|
|
|
| |
|
2020-03-29 11:46:00 -07:00
|
|
|
| constraint
|
2020-03-28 17:45:36 -07:00
|
|
|
|
|
2020-03-29 11:31:58 -07:00
|
|
|
help: move the constraint after the generic argument
|
2020-03-28 17:45:36 -07:00
|
|
|
|
|
2020-03-29 11:31:58 -07:00
|
|
|
LL | pub fn test<W, I: Trait<W, Item = ()> >() {}
|
2021-06-21 19:07:19 -07:00
|
|
|
| ~~~~~~~~~~~~~~
|
2018-10-20 23:36:17 +03:00
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|