summaryrefslogtreecommitdiffstats
path: root/tests/ui/parser/assoc-type-in-type-arg.stderr
blob: b637702f21e90d3452fc5cf1864df81132747180 (plain)
1
2
3
4
5
6
7
8
error: bounds on associated types do not belong here
  --> $DIR/assoc-type-in-type-arg.rs:5:26
   |
LL | struct Bar<'a, Item: Tr, <Item as Tr>::TrSubtype: 'a> {
   |                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^ belongs in `where` clause

error: aborting due to previous error