mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-27 18:57:42 +03:00
22 lines
358 B
Rust
22 lines
358 B
Rust
//! Regression test for https://github.com/rust-lang/rust/issues/2502
|
|
|
|
//@ check-pass
|
|
#![allow(dead_code)]
|
|
#![allow(non_camel_case_types)]
|
|
|
|
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 }
|
|
}
|
|
|
|
pub fn main() {}
|