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