summaryrefslogtreecommitdiffstats
path: root/tests/ui/issues/issue-8398.rs
blob: 0ef39b6a6b327c2c9fde676fd9c5c6c680d448e9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// check-pass
#![allow(dead_code)]
// pretty-expanded FIXME #23616

pub trait Writer {
    fn write(&mut self, b: &[u8]) -> Result<(), ()>;
}

fn foo(a: &mut dyn Writer) {
    a.write(&[]).unwrap();
}

pub fn main(){}