rust/src/test/ui/parser/issue-32214.stderr

13 lines
456 B
Plaintext
Raw Normal View History

2018-10-20 15:36:17 -05:00
error: type parameters must be declared prior to associated type bindings
--> $DIR/issue-32214.rs:5:34
2018-10-20 15:36:17 -05:00
|
LL | pub fn test<W, I: Trait<Item=(), W> >() {}
| ^ must be declared prior to associated type bindings
help: move the type parameter prior to the first associated type binding
|
LL | pub fn test<W, I: Trait<W, Item=()> >() {}
| ^^ --
2018-10-20 15:36:17 -05:00
error: aborting due to previous error