mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-16 05:56:56 +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);
|
|
}
|