]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-2502.rs
Auto merge of #57108 - Mark-Simulacrum:license-remove, r=pietroalbini
[rust.git] / src / test / ui / issues / issue-2502.rs
1 // compile-pass
2 #![allow(dead_code)]
3 #![allow(non_camel_case_types)]
4
5
6 // pretty-expanded FIXME #23616
7
8 struct font<'a> {
9     fontbuf: &'a Vec<u8> ,
10 }
11
12 impl<'a> font<'a> {
13     pub fn buf(&self) -> &'a Vec<u8> {
14         self.fontbuf
15     }
16 }
17
18 fn font(fontbuf: &Vec<u8> ) -> font {
19     font {
20         fontbuf: fontbuf
21     }
22 }
23
24 pub fn main() { }