]> git.lizzy.rs Git - rust.git/blob - tests/ui/print_with_newline.stderr
Check {print,write}_with_newline for literal newline
[rust.git] / tests / ui / print_with_newline.stderr
1 error: using `print!()` with a format string that ends in a single newline, consider using `println!()` instead
2   --> $DIR/print_with_newline.rs:5:5
3    |
4 LL |     print!("Hello/n");
5    |     ^^^^^^^^^^^^^^^^^
6    |
7    = note: `-D clippy::print-with-newline` implied by `-D warnings`
8
9 error: using `print!()` with a format string that ends in a single newline, consider using `println!()` instead
10   --> $DIR/print_with_newline.rs:6:5
11    |
12 LL |     print!("Hello {}/n", "world");
13    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
14
15 error: using `print!()` with a format string that ends in a single newline, consider using `println!()` instead
16   --> $DIR/print_with_newline.rs:7:5
17    |
18 LL |     print!("Hello {} {}/n", "world", "#2");
19    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
20
21 error: using `print!()` with a format string that ends in a single newline, consider using `println!()` instead
22   --> $DIR/print_with_newline.rs:8:5
23    |
24 LL |     print!("{}/n", 1265);
25    |     ^^^^^^^^^^^^^^^^^^^^
26
27 error: using `print!()` with a format string that ends in a single newline, consider using `println!()` instead
28   --> $DIR/print_with_newline.rs:27:5
29    |
30 LL |     print!("//n"); // should fail
31    |     ^^^^^^^^^^^^^^
32
33 error: using `print!()` with a format string that ends in a single newline, consider using `println!()` instead
34   --> $DIR/print_with_newline.rs:34:5
35    |
36 LL | /     print!(
37 LL | |         "
38 LL | | "
39 LL | |     );
40    | |_____^
41
42 error: using `print!()` with a format string that ends in a single newline, consider using `println!()` instead
43   --> $DIR/print_with_newline.rs:38:5
44    |
45 LL | /     print!(
46 LL | |         r"
47 LL | | "
48 LL | |     );
49    | |_____^
50
51 error: aborting due to 7 previous errors
52