7 writer: &'a mut (dyn Write+'a),
13 impl fmt::Write for Bar {
14 fn write_str(&mut self, _: &str) -> fmt::Result {
19 fn borrowing_writer_from_struct_and_formatting_struct_field(foo: Foo) {
20 write!(foo.writer, "{}", foo.other).unwrap();
24 let mut w = Vec::new();
25 write!(&mut w as &mut dyn Write, "").unwrap();
26 write!(&mut w, "").unwrap(); // should coerce
32 write!(&mut s, "test").unwrap();