about summary refs log tree commit diff
path: root/tests/crashes/132765.rs
blob: 01e8fdaacff7761b0e33e247a614edcc385a92cf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
//@ 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);
}