16 lines
262 B
Rust
16 lines
262 B
Rust
// 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);
|
|
}
|