aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/rust/compile/issue-1128.rs
blob: 8960ebbea63d299b469d7b094cc1379d0cfb2524 (plain)
1
2
3
4
5
6
7
8
9
#[lang = "sized"]
pub trait Sized {}

pub trait Hasher {
    fn write(&mut self, bytes: &[u8]);
    fn write_u8(&mut self, i: u8) {
        self.write(&[i])
    }
}