From 6720f02af6e72cdbba37620172794d818ebf25f4 Mon Sep 17 00:00:00 2001 From: Steve Klabnik Date: Thu, 29 Sep 2016 15:04:27 -0400 Subject: [PATCH] rust-lang/rust#27954 is now fixed --- src/27954.rs | 30 ------------------------------ 1 file changed, 30 deletions(-) delete mode 100644 src/27954.rs 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(); -}