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