about summary refs log tree commit diff
path: root/tests/ui/generic-associated-types/issue-67510.rs
blob: 5c3150a77ed1bf04803fef48f9f311fa697acb0a (plain)
1
2
3
4
5
6
7
8
9
10
trait X {
    type Y<'a>;
}

fn f(x: Box<dyn X<Y<'a> = &'a ()>>) {}
//~^ ERROR: use of undeclared lifetime name `'a`
//~| ERROR: use of undeclared lifetime name `'a`
//~| ERROR: the trait `X` is not dyn compatible [E0038]

fn main() {}