]> git.proxmox.com Git - rustc.git/blob - src/tools/clippy/tests/ui/eprint_with_newline.stderr
New upstream version 1.56.0~beta.4+dfsg1
[rustc.git] / src / tools / clippy / tests / ui / eprint_with_newline.stderr
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 |
10 LL - eprint!("Hello/n");
11 LL + eprintln!("Hello");
12 |
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 |
22 LL - eprint!("Hello {}/n", "world");
23 LL + eprintln!("Hello {}", "world");
24 |
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 |
34 LL - eprint!("Hello {} {}/n", "world", "#2");
35 LL + eprintln!("Hello {} {}", "world", "#2");
36 |
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 |
46 LL - eprint!("{}/n", 1265);
47 LL + eprintln!("{}", 1265);
48 |
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 |
58 LL - eprint!("/n");
59 LL + eprintln!();
60 |
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 |
70 LL - eprint!("//n"); // should fail
71 LL + eprintln!("/"); // should fail
72 |
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 |
85 LL ~ eprintln!(
86 LL ~ ""
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 |
100 LL ~ eprintln!(
101 LL ~ r""
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 |
112 LL - eprint!("/r/n"); //~ ERROR
113 LL + eprintln!("/r"); //~ ERROR
114 |
115
116 error: using `eprint!()` with a format string that ends in a single newline
117 --> $DIR/eprint_with_newline.rs:48:5
118 |
119 LL | eprint!("foo/rbar/n") // ~ ERROR
120 | ^^^^^^^^^^^^^^^^^^^^^
121 |
122 help: use `eprintln!` instead
123 |
124 LL - eprint!("foo/rbar/n") // ~ ERROR
125 LL + eprintln!("foo/rbar") // ~ ERROR
126 |
127
128 error: aborting due to 10 previous errors
129