]> git.lizzy.rs Git - rust.git/blob - tests/ui/parser/issues/issue-32214.stderr
Rollup merge of #106470 - ehuss:tidy-no-wasm, r=Mark-Simulacrum
[rust.git] / tests / ui / parser / issues / issue-32214.stderr
1 error: generic arguments must come before the first constraint
2   --> $DIR/issue-32214.rs:3:34
3    |
4 LL | pub fn test<W, I: Trait<Item=(), W> >() {}
5    |                         -------  ^ generic argument
6    |                         |
7    |                         constraint
8    |
9 help: move the constraint after the generic argument
10    |
11 LL | pub fn test<W, I: Trait<W, Item = ()> >() {}
12    |                        ~~~~~~~~~~~~~~
13
14 error: aborting due to previous error
15