mirror of
https://github.com/rust-lang/rust
synced 2024-09-05 16:57:03 +00:00
28 lines
457 B
Rust
28 lines
457 B
Rust
//@ check-pass
|
|
|
|
fn main() {}
|
|
|
|
trait Reader {}
|
|
|
|
struct Unit<R>(R);
|
|
struct ResDwarf<R>(R);
|
|
|
|
struct Context<R: Reader> {
|
|
dwarf: ResDwarf<R>,
|
|
}
|
|
|
|
struct Range;
|
|
|
|
struct ResUnit<R>(R);
|
|
|
|
impl<R: Reader + 'static> Context<R> {
|
|
fn find_dwarf_unit(&self, probe: u64) -> Option<&Unit<R>> {
|
|
let x = self.find_units(probe);
|
|
None
|
|
}
|
|
|
|
fn find_units(&self, probe: u64) -> impl Iterator<Item = &ResUnit<R>> {
|
|
std::iter::empty()
|
|
}
|
|
}
|