Skip to content

Commit f81933d

Browse files
committed
Rollup merge of #24688 - SimonSapin:fmt-write-char, r=alexcrichton
… added in #24661.
2 parents bd8101d + bf13103 commit f81933d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/test/run-pass/ifmt.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,9 +195,11 @@ fn test_write() {
195195
write!(w, "{}", "hello");
196196
writeln!(w, "{}", "line");
197197
writeln!(w, "{foo}", foo="bar");
198+
w.write_char('☃');
199+
w.write_str("str");
198200
}
199201

200-
t!(buf, "34helloline\nbar\n");
202+
t!(buf, "34helloline\nbar\n☃str");
201203
}
202204

203205
// Just make sure that the macros are defined, there's not really a lot that we

0 commit comments

Comments
 (0)