]> git.proxmox.com Git - rustc.git/blame - src/test/ui/generic-associated-types/issue-67510.rs
New upstream version 1.62.1+dfsg1
[rustc.git] / src / test / ui / generic-associated-types / issue-67510.rs
CommitLineData
5869c6ff 1#![feature(generic_associated_types)]
5869c6ff
XL
2
3trait X {
4 type Y<'a>;
5}
6
04454e1e
FG
7fn f(x: Box<dyn X<Y<'a> = &'a ()>>) {}
8//~^ ERROR: use of undeclared lifetime name `'a`
9//~| ERROR: use of undeclared lifetime name `'a`
10//~| ERROR: the trait `X` cannot be made into an object [E0038]
5869c6ff
XL
11
12fn main() {}