summary refs log tree commit diff
path: root/src/test/run-pass/issue-2502.rs
blob: 64028890df027281813eae84572b2023de0b7885 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
struct font {
    fontbuf: &self/~[u8],
}

impl font {
    fn buf() -> &self/~[u8] {
        self.fontbuf
    }
}

fn font(fontbuf: &r/~[u8]) -> font/&r {
    font {
        fontbuf: fontbuf
    }
}

fn main() { }