]>
Commit | Line | Data |
---|---|---|
f20569fa XL |
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 | | | |
94222f64 XL |
10 | LL - print!("Hello/n"); |
11 | LL + println!("Hello"); | |
923072b8 | 12 | | |
f20569fa XL |
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 | | | |
94222f64 XL |
22 | LL - print!("Hello {}/n", "world"); |
23 | LL + println!("Hello {}", "world"); | |
923072b8 | 24 | | |
f20569fa XL |
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 | | | |
94222f64 XL |
34 | LL - print!("Hello {} {}/n", "world", "#2"); |
35 | LL + println!("Hello {} {}", "world", "#2"); | |
923072b8 | 36 | | |
f20569fa XL |
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 | | | |
94222f64 XL |
46 | LL - print!("{}/n", 1265); |
47 | LL + println!("{}", 1265); | |
923072b8 | 48 | | |
f20569fa XL |
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 | | | |
94222f64 XL |
58 | LL - print!("/n"); |
59 | LL + println!(); | |
923072b8 | 60 | | |
f20569fa XL |
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 | | | |
94222f64 XL |
70 | LL - print!("//n"); // should fail |
71 | LL + println!("/"); // should fail | |
923072b8 | 72 | | |
f20569fa XL |
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 | | | |
94222f64 XL |
85 | LL ~ println!( |
86 | LL ~ "" | |
f20569fa XL |
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 | | | |
94222f64 XL |
100 | LL ~ println!( |
101 | LL ~ r"" | |
f20569fa XL |
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 | | | |
94222f64 XL |
112 | LL - print!("/r/n"); //~ ERROR |
113 | LL + println!("/r"); //~ ERROR | |
923072b8 | 114 | | |
f20569fa XL |
115 | |
116 | error: using `print!()` with a format string that ends in a single newline | |
117 | --> $DIR/print_with_newline.rs:51:5 | |
118 | | | |
119 | LL | print!("foo/rbar/n") // ~ ERROR | |
120 | | ^^^^^^^^^^^^^^^^^^^^ | |
121 | | | |
122 | help: use `println!` instead | |
123 | | | |
94222f64 XL |
124 | LL - print!("foo/rbar/n") // ~ ERROR |
125 | LL + println!("foo/rbar") // ~ ERROR | |
923072b8 | 126 | | |
f20569fa XL |
127 | |
128 | error: aborting due to 10 previous errors | |
129 |