@@ -21,38 +21,24 @@ LL | writeln!("{}_{}", "{} {}", x, y);
2121 | ++++++++
2222
2323error[E0599]: cannot write into `&'static str`
24- --> $DIR/missing-writer.rs:5:12
24+ --> $DIR/missing-writer.rs:5:5
2525 |
2626LL | write!("{}_{}", x, y);
27- | ------- ^^^^^^^------- method not found in `&str`
27+ | ^^^^^^^^^^^^^^^^^^^^^
2828 |
29- note: must implement `io::Write`, `fmt::Write`, or have a `write_fmt` method
30- --> $DIR/missing-writer.rs:5:12
31- |
32- LL | write!("{}_{}", x, y);
33- | ^^^^^^^
34- help: a writer is needed before this format string
35- --> $DIR/missing-writer.rs:5:12
36- |
37- LL | write!("{}_{}", x, y);
38- | ^
29+ = note: type does not implement the `write_fmt` method
30+ = help: try adding `use std::fmt::Write;` or `use std::io::Write;` to bring the appropriate trait into scope
31+ = note: this error originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info)
3932
4033error[E0599]: cannot write into `&'static str`
41- --> $DIR/missing-writer.rs:11:14
34+ --> $DIR/missing-writer.rs:11:5
4235 |
4336LL | writeln!("{}_{}", x, y);
44- | --------- ^^^^^^^------- method not found in `&str`
37+ | ^^^^^^^^^^^^^^^^^^^^^^^
4538 |
46- note: must implement `io::Write`, `fmt::Write`, or have a `write_fmt` method
47- --> $DIR/missing-writer.rs:11:14
48- |
49- LL | writeln!("{}_{}", x, y);
50- | ^^^^^^^
51- help: a writer is needed before this format string
52- --> $DIR/missing-writer.rs:11:14
53- |
54- LL | writeln!("{}_{}", x, y);
55- | ^
39+ = note: type does not implement the `write_fmt` method
40+ = help: try adding `use std::fmt::Write;` or `use std::io::Write;` to bring the appropriate trait into scope
41+ = note: this error originates in the macro `writeln` (in Nightly builds, run with -Z macro-backtrace for more info)
5642
5743error: aborting due to 4 previous errors
5844
0 commit comments