2023-03-15 07:51:34 -05:00
|
|
|
// 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 = &();
|
2024-03-19 15:58:37 -05:00
|
|
|
//~^ ERROR the trait bound `(): Lt<'_>` is not satisfied
|
2023-03-15 07:51:34 -05:00
|
|
|
}
|