diff options
Diffstat (limited to '')
-rw-r--r-- | src/test/ui/issues/issue-2502.rs | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/test/ui/issues/issue-2502.rs b/src/test/ui/issues/issue-2502.rs new file mode 100644 index 000000000..631510024 --- /dev/null +++ b/src/test/ui/issues/issue-2502.rs @@ -0,0 +1,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() { } |