blob: 2c02ce670b944d029151c89da7d738ce85c83c5a [file] [log] [blame] [edit]
//@ run-pass
//@ pretty-expanded FIXME #23616
use std::marker;
pub struct Foo<T>(marker::PhantomData<T>);
impl<T> Iterator for Foo<T> {
type Item = T;
fn next(&mut self) -> Option<T> {
None
}
}
impl<T> Drop for Foo<T> {
fn drop(&mut self) {
self.next();
}
}
pub fn foo<'a>(_: Foo<&'a ()>) {}
pub fn main() {}