]> git.lizzy.rs Git - rust.git/blob - src/tools/clippy/tests/ui/print_with_newline.stderr
Merge commit '7248d06384c6a90de58c04c1f46be88821278d8b' into sync-from-clippy
[rust.git] / src / tools / clippy / tests / ui / print_with_newline.stderr
1 error: using `print!()` with a format string that ends in a single newline
2   --> $DIR/print_with_newline.rs:8:5
3    |
4 LL |     print!("Hello/n");
5    |     ^^^^^^^^^^^^^^^^^
6    |
7    = note: `-D clippy::print-with-newline` implied by `-D warnings`
8 help: use `println!` instead
9    |
10 LL -     print!("Hello/n");
11 LL +     println!("Hello");
12    |
13
14 error: using `print!()` with a format string that ends in a single newline
15   --> $DIR/print_with_newline.rs:9:5
16    |
17 LL |     print!("Hello {}/n", "world");
18    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
19    |
20 help: use `println!` instead
21    |
22 LL -     print!("Hello {}/n", "world");
23 LL +     println!("Hello {}", "world");
24    |
25
26 error: using `print!()` with a format string that ends in a single newline
27   --> $DIR/print_with_newline.rs:10:5
28    |
29 LL |     print!("Hello {} {}/n", "world", "#2");
30    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
31    |
32 help: use `println!` instead
33    |
34 LL -     print!("Hello {} {}/n", "world", "#2");
35 LL +     println!("Hello {} {}", "world", "#2");
36    |
37
38 error: using `print!()` with a format string that ends in a single newline
39   --> $DIR/print_with_newline.rs:11:5
40    |
41 LL |     print!("{}/n", 1265);
42    |     ^^^^^^^^^^^^^^^^^^^^
43    |
44 help: use `println!` instead
45    |
46 LL -     print!("{}/n", 1265);
47 LL +     println!("{}", 1265);
48    |
49
50 error: using `print!()` with a format string that ends in a single newline
51   --> $DIR/print_with_newline.rs:12:5
52    |
53 LL |     print!("/n");
54    |     ^^^^^^^^^^^^
55    |
56 help: use `println!` instead
57    |
58 LL -     print!("/n");
59 LL +     println!();
60    |
61
62 error: using `print!()` with a format string that ends in a single newline
63   --> $DIR/print_with_newline.rs:31:5
64    |
65 LL |     print!("//n"); // should fail
66    |     ^^^^^^^^^^^^^^
67    |
68 help: use `println!` instead
69    |
70 LL -     print!("//n"); // should fail
71 LL +     println!("/"); // should fail
72    |
73
74 error: using `print!()` with a format string that ends in a single newline
75   --> $DIR/print_with_newline.rs:38:5
76    |
77 LL | /     print!(
78 LL | |         "
79 LL | | "
80 LL | |     );
81    | |_____^
82    |
83 help: use `println!` instead
84    |
85 LL ~     println!(
86 LL ~         
87    |
88
89 error: using `print!()` with a format string that ends in a single newline
90   --> $DIR/print_with_newline.rs:42:5
91    |
92 LL | /     print!(
93 LL | |         r"
94 LL | | "
95 LL | |     );
96    | |_____^
97    |
98 help: use `println!` instead
99    |
100 LL ~     println!(
101 LL ~         
102    |
103
104 error: using `print!()` with a format string that ends in a single newline
105   --> $DIR/print_with_newline.rs:50:5
106    |
107 LL |     print!("/r/n"); //~ ERROR
108    |     ^^^^^^^^^^^^^^^
109    |
110 help: use `println!` instead
111    |
112 LL -     print!("/r/n"); //~ ERROR
113 LL +     println!("/r"); //~ ERROR
114    |
115
116 error: aborting due to 9 previous errors
117