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