diff options
Diffstat (limited to '')
-rw-r--r-- | src/test/ui/issues/issue-17322.rs | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/test/ui/issues/issue-17322.rs b/src/test/ui/issues/issue-17322.rs new file mode 100644 index 000000000..20a8d1361 --- /dev/null +++ b/src/test/ui/issues/issue-17322.rs @@ -0,0 +1,15 @@ +// 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); +} |