summaryrefslogtreecommitdiffstats
path: root/src/test/ui/issues/issue-2502.rs
blob: 63151002438c389274ae8ea3dd96840c7732c6de (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// 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() { }