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