// check-pass use std::marker::PhantomData; pub struct ConcreteError {} pub trait IoBase {} struct X {} impl IoBase for X {} pub struct ClusterIterator { pub fat: B, phantom_s: PhantomData, phantom_e: PhantomData, } pub struct FileSystem { pub disk: IO, } impl FileSystem { pub fn cluster_iter(&self) -> ClusterIterator { ClusterIterator { fat: X {}, phantom_s: PhantomData::default(), phantom_e: PhantomData::default(), } } } fn main() {}