Fix a span bug for qualified paths

This commit is contained in:
Nick Cameron 2015-07-08 17:47:27 +12:00
parent 374af4aea7
commit f28f79b796
2 changed files with 17 additions and 4 deletions

View file

@ -364,3 +364,18 @@ impl<'a> Pattern<'a> for CharEqPattern {
}
struct CharSearcher<'a>(<CharEqPattern as Pattern<'a>>::Searcher);
pub trait Error {
}
impl Error + 'static {
pub fn is<T: Error + 'static>(&self) -> bool {
panic!()
}
}
impl Error + 'static + Send {
pub fn is<T: Error + 'static>(&self) -> bool {
<Error + 'static>::is::<T>(self)
}
}