rust/tests/ui/issues/issue-2502.rs

25 lines
340 B
Rust
Raw Normal View History

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