Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
16 lines (11 sloc) 262 Bytes
// run-pass
// pretty-expanded FIXME #23616
#![feature(box_syntax)]
use std::io::{self, Write};
fn f(wr: &mut dyn Write) {
wr.write_all(b"hello").ok().expect("failed");
}
fn main() {
let mut wr = box io::stdout() as Box<dyn Write>;
f(&mut wr);
}
You can’t perform that action at this time.