jpernst/rental

compiler crash when using a non Deref rental type

Closed this issue · 1 comments

Example:

#[macro_use] extern crate rental;

#[derive(Debug)]
pub struct I32Ref<'a> {
    r: &'a i32
}
impl<'a> ::std::fmt::Display for I32Ref<'a> {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        write!(f, "{}", self.r)
    }
}

rental!{
    mod rent_lib {
        pub rental RentSym<'rental>(Box<i32>, ::I32Ref<'rental>);
    }
}

fn main() {
}

Sorry about missing this for so long, my notification settings were messed up.
This appears to work in the latest 0.3.3 version, reopen if it's still broken.