summary refs log tree commit diff
path: root/src/test/ui/issues/issue-8398.rs
blob: bd37b8582b204b60d0a0ac11ee56eb1f25da4fc9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// compile-pass
#![allow(dead_code)]
// pretty-expanded FIXME #23616

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

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

pub fn main(){}