about summary refs log tree commit diff
path: root/tests/ui/generic-associated-types/issue-67510-pass.rs
blob: 2bfba7f6942fbdd5b9a723fa6a8dc8eca03a5588 (plain)
1
2
3
4
5
6
7
8
9
10
//@ check-fail

trait X {
    type Y<'a>;
}

fn _func1<'a>(_x: Box<dyn X<Y<'a>=&'a ()>>) {}
//~^ ERROR the trait `X` is not dyn compatible

fn main() {}