mirror of
https://git.proxmox.com/git/rustc
synced 2026-01-25 05:33:58 +00:00
18 lines
316 B
Rust
18 lines
316 B
Rust
//@ check-pass
|
|
|
|
// Show how precise captures allow us to skip capturing a higher-ranked lifetime
|
|
|
|
#![feature(lifetime_capture_rules_2024)]
|
|
|
|
trait Trait<'a> {
|
|
type Item;
|
|
}
|
|
|
|
impl Trait<'_> for () {
|
|
type Item = Vec<()>;
|
|
}
|
|
|
|
fn hello() -> impl for<'a> Trait<'a, Item = impl IntoIterator + use<>> {}
|
|
|
|
fn main() {}
|