mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-02 15:32:06 +00:00
13 lines
363 B
Rust
13 lines
363 B
Rust
struct NeedsDropTypes<'tcx, F>(std::marker::PhantomData<&'tcx F>);
|
|
|
|
impl<'tcx, F, I> Iterator for NeedsDropTypes<'tcx, F>
|
|
//~^ ERROR type annotations needed
|
|
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() {}
|