diff --git a/src/27954.rs b/src/27954.rs deleted file mode 100644 index 53c4310d..00000000 --- a/src/27954.rs +++ /dev/null @@ -1,30 +0,0 @@ -use std::marker::PhantomData; - -pub trait Filterable { - type Filter; -} - -pub trait ComponentMapper { - type Component; - fn entities_filtered(&self, ::Filter) - where Self::Component: Filterable; -} - -pub struct VecMapper { - _marker: ::std::marker::PhantomData -} - -impl VecMapper { - pub fn new() -> VecMapper { - VecMapper { _marker: PhantomData } - } -} - -impl ComponentMapper for VecMapper { - type Component = T; - fn entities_filtered(&self, _filter: T::Filter) where T: Filterable {} -} - -fn main() { - let _m: &ComponentMapper = &VecMapper::<()>::new(); -}