blob: 3f2ad3ccbf582d575d3f22b69c74aa7d2dc589ed (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
// Regression test for #109072.
// Check that we don't ICE when canonicalizing user annotation.
trait Lt<'a> {
type T;
}
impl Lt<'missing> for () { //~ ERROR undeclared lifetime
type T = &'missing (); //~ ERROR undeclared lifetime
}
fn main() {
let _: <() as Lt<'_>>::T = &();
}
|