aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/rust/compile/issue-1128.rs
blob: 462426b679dad20c0ff5d33fb8d991bf209f60d3 (plain)
1
2
3
4
5
6
pub trait Hasher {
    fn write(&mut self, bytes: &[u8]);
    fn write_u8(&mut self, i: u8) {
        self.write(&[i])
    }
}