mirror of
https://git.proxmox.com/git/rustc
synced 2025-08-18 16:21:28 +00:00
15 lines
294 B
Rust
15 lines
294 B
Rust
// 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 = &();
|
|
}
|