blob: 000956ea24fadb5c14d1dd352d6756464fcf276f (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
trait Tr {
type TrSubtype;
}
struct Bar<'a, Item: Tr, <Item as Tr>::TrSubtype: 'a> {
//~^ ERROR bounds on associated types do not belong here
item: Item,
item_sub: &'a <Item as Tr>::TrSubtype,
}
fn main() {}
|