Sign in
fuchsia
/
third_party
/
rust
/
08351004125c4d49aa757f2c3ec2340f7469ea91
/
.
/
src
/
test
/
ui
/
issues
/
issue-17322.rs
blob: 20a8d136124695495b4dbe7e6e798497ffa4e4ff [
file
] [
log
] [
blame
]
// 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
);
}