rust/src/test/ui/issues/issue-8398.rs
2019-07-03 06:30:28 +09:00

14 lines
255 B
Rust

// build-pass (FIXME(62277): could be 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(){}