]> git.lizzy.rs Git - rust.git/blob - src/test/ui/generic-associated-types/issue-67510-pass.rs
Rollup merge of #86764 - estebank:issue-86756, r=pnkfelix
[rust.git] / src / test / ui / generic-associated-types / issue-67510-pass.rs
1 #![feature(generic_associated_types)]
2
3 trait X {
4     type Y<'a>;
5 }
6
7 fn _func1<'a>(_x: Box<dyn X<Y<'a>=&'a ()>>) {}
8 //~^ ERROR the trait `X` cannot be made into an object
9
10 fn main() {}