]> git.lizzy.rs Git - rust.git/blob - clippy_tests/examples/print_with_newline.stderr
Fix the test suite after cargo update
[rust.git] / clippy_tests / examples / print_with_newline.stderr
1 error: using `print!()` with a format string that ends in a newline, consider using `println!()` instead
2  --> print_with_newline.rs:6:5
3   |
4 6 |     print!("Hello\n");
5   |     ^^^^^^^^^^^^^^^^^^
6   |
7   = note: `-D print-with-newline` implied by `-D warnings`
8
9 error: using `print!()` with a format string that ends in a newline, consider using `println!()` instead
10  --> print_with_newline.rs:7:5
11   |
12 7 |     print!("Hello {}\n", "world");
13   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
14   |
15   = note: `-D print-with-newline` implied by `-D warnings`
16
17 error: using `print!()` with a format string that ends in a newline, consider using `println!()` instead
18  --> print_with_newline.rs:8:5
19   |
20 8 |     print!("Hello {} {}\n\n", "world", "#2");
21   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
22   |
23   = note: `-D print-with-newline` implied by `-D warnings`
24
25 error: using `print!()` with a format string that ends in a newline, consider using `println!()` instead
26  --> print_with_newline.rs:9:5
27   |
28 9 |     print!("{}\n", 1265);
29   |     ^^^^^^^^^^^^^^^^^^^^^
30   |
31   = note: `-D print-with-newline` implied by `-D warnings`
32
33 error: aborting due to previous error(s)
34
35
36 To learn more, run the command again with --verbose.