]> git.lizzy.rs Git - rust.git/blob - tests/ui/write_with_newline.stderr
Merge pull request #2962 from phansch/further_automate_pre_publish
[rust.git] / tests / ui / write_with_newline.stderr
1 error: using `write!()` with a format string that ends in a single newline, consider using `writeln!()` instead
2   --> $DIR/write_with_newline.rs:10:5
3    |
4 10 |     write!(&mut v, "Hello/n");
5    |     ^^^^^^^^^^^^^^^^^^^^^^^^^
6    |
7    = note: `-D write-with-newline` implied by `-D warnings`
8
9 error: using `write!()` with a format string that ends in a single newline, consider using `writeln!()` instead
10   --> $DIR/write_with_newline.rs:11:5
11    |
12 11 |     write!(&mut v, "Hello {}/n", "world");
13    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
14
15 error: using `write!()` with a format string that ends in a single newline, consider using `writeln!()` instead
16   --> $DIR/write_with_newline.rs:12:5
17    |
18 12 |     write!(&mut v, "Hello {} {}/n", "world", "#2");
19    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
20
21 error: using `write!()` with a format string that ends in a single newline, consider using `writeln!()` instead
22   --> $DIR/write_with_newline.rs:13:5
23    |
24 13 |     write!(&mut v, "{}/n", 1265);
25    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
26
27 error: aborting due to 4 previous errors
28