]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/assoc-type-in-type-arg.rs
Merge commit '61667dedf55e3e5aa584f7ae2bd0471336b92ce9' into sync_cg_clif-2021-09-19
[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() {}