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