]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/assoc-type-in-type-arg.rs
Merge commit '9a0c32934ebe376128230aa8da3275697b2053e7' into sync_cg_clif-2021-03-05
[rust.git] / src / test / ui / parser / assoc-type-in-type-arg.rs
1 trait Tr {
2     type TrSubtype;
3 }
4
5 struct Bar<'a, Item: Tr, <Item as Tr>::TrSubtype: 'a> {
6     //~^ ERROR bounds on associated types do not belong here
7     item: Item,
8     item_sub: &'a <Item as Tr>::TrSubtype,
9 }
10
11 fn main() {}