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