mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-29 18:23:49 +00:00
25 lines
342 B
Rust
25 lines
342 B
Rust
//@ 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 {
|
|
font {
|
|
fontbuf: fontbuf
|
|
}
|
|
}
|
|
|
|
pub fn main() { }
|