2024-04-03 19:54:23 -05:00
|
|
|
//@ check-pass
|
|
|
|
|
|
|
|
// Show how precise captures allow us to skip capturing a higher-ranked lifetime
|
|
|
|
|
2024-07-12 05:12:24 -05:00
|
|
|
#![feature(lifetime_capture_rules_2024)]
|
2024-04-03 19:54:23 -05:00
|
|
|
|
|
|
|
trait Trait<'a> {
|
|
|
|
type Item;
|
|
|
|
}
|
|
|
|
|
|
|
|
impl Trait<'_> for () {
|
|
|
|
type Item = Vec<()>;
|
|
|
|
}
|
|
|
|
|
2024-06-05 15:18:52 -05:00
|
|
|
fn hello() -> impl for<'a> Trait<'a, Item = impl IntoIterator + use<>> {}
|
2024-04-03 19:54:23 -05:00
|
|
|
|
2024-04-04 11:54:56 -05:00
|
|
|
fn main() {}
|