summaryrefslogtreecommitdiffstats
path: root/src/test/ui/generic-associated-types/issue-67510.rs
blob: ab5c25d74da7340bb25b7ceab71cf8916307d6a7 (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` cannot be made into an object [E0038]

fn main() {}