Use the correct lifetime bounds for FooCast::from_actual.

This commit is contained in:
Ms2ger 2015-02-28 19:06:04 +01:00
parent 1f53d30f85
commit ca21675359

View file

@ -5373,7 +5373,7 @@ impl ${name}Cast {
}
#[inline(always)]
pub fn from_actual<'a, T: ${fromBound}+Reflectable>(derived: &T) -> &'a ${name} {
pub fn from_actual<'a, T: ${fromBound}+Reflectable>(derived: &'a T) -> &'a ${name} {
unsafe { mem::transmute(derived) }
}
}