]> git.lizzy.rs Git - rust.git/blob - tests/ui/parser/assoc-type-in-type-arg.rs
Merge commit '598f0909568a51de8a2d1148f55a644fd8dffad0' into sync_cg_clif-2023-01-24
[rust.git] / tests / 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() {}