mirror of
https://github.com/rust-lang/rust
synced 2024-11-05 20:45:15 +00:00
84baf2f6f8
This helps iron out a difference between Sub and Equate
12 lines
371 B
Rust
12 lines
371 B
Rust
struct NeedsDropTypes<'tcx, F>(std::marker::PhantomData<&'tcx F>);
|
|
|
|
impl<'tcx, F, I> Iterator for NeedsDropTypes<'tcx, F>
|
|
//~^ ERROR not all trait items implemented
|
|
where
|
|
F: Fn(&Missing) -> Result<I, ()>,
|
|
//~^ ERROR cannot find type `Missing` in this scope
|
|
I: Iterator<Item = Missing>,
|
|
//~^ ERROR cannot find type `Missing` in this scope
|
|
{}
|
|
|
|
fn main() {}
|