mirror of
https://git.proxmox.com/git/rustc
synced 2025-08-16 05:59:17 +00:00
13 lines
194 B
Rust
13 lines
194 B
Rust
//@ known-bug: #132765
|
|
|
|
trait LendingIterator {
|
|
type Item<'q>;
|
|
fn for_each(&self, _f: Box<fn(Self::Item<'_>)>) {}
|
|
}
|
|
|
|
fn f(_: ()) {}
|
|
|
|
fn main() {
|
|
LendingIterator::for_each(&(), f);
|
|
}
|