// check-pass #![allow(dead_code)] #![allow(non_camel_case_types)] // pretty-expanded FIXME #23616 struct font<'a> { fontbuf: &'a Vec , } impl<'a> font<'a> { pub fn buf(&self) -> &'a Vec { self.fontbuf } } fn font(fontbuf: &Vec ) -> font { font { fontbuf: fontbuf } } pub fn main() { }