]> git.lizzy.rs Git - rust.git/blob - src/tools/clippy/tests/ui/print_with_newline.stderr
Rollup merge of #84221 - ABouttefeux:generic-arg-elision, r=estebank
[rust.git] / src / tools / clippy / tests / ui / print_with_newline.stderr
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    |
10 LL |     println!("Hello");
11    |     ^^^^^^^       --
12
13 error: using `print!()` with a format string that ends in a single newline
14   --> $DIR/print_with_newline.rs:9:5
15    |
16 LL |     print!("Hello {}/n", "world");
17    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
18    |
19 help: use `println!` instead
20    |
21 LL |     println!("Hello {}", "world");
22    |     ^^^^^^^          --
23
24 error: using `print!()` with a format string that ends in a single newline
25   --> $DIR/print_with_newline.rs:10:5
26    |
27 LL |     print!("Hello {} {}/n", "world", "#2");
28    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
29    |
30 help: use `println!` instead
31    |
32 LL |     println!("Hello {} {}", "world", "#2");
33    |     ^^^^^^^             --
34
35 error: using `print!()` with a format string that ends in a single newline
36   --> $DIR/print_with_newline.rs:11:5
37    |
38 LL |     print!("{}/n", 1265);
39    |     ^^^^^^^^^^^^^^^^^^^^
40    |
41 help: use `println!` instead
42    |
43 LL |     println!("{}", 1265);
44    |     ^^^^^^^    --
45
46 error: using `print!()` with a format string that ends in a single newline
47   --> $DIR/print_with_newline.rs:12:5
48    |
49 LL |     print!("/n");
50    |     ^^^^^^^^^^^^
51    |
52 help: use `println!` instead
53    |
54 LL |     println!();
55    |     ^^^^^^^ --
56
57 error: using `print!()` with a format string that ends in a single newline
58   --> $DIR/print_with_newline.rs:31:5
59    |
60 LL |     print!("//n"); // should fail
61    |     ^^^^^^^^^^^^^^
62    |
63 help: use `println!` instead
64    |
65 LL |     println!("/"); // should fail
66    |     ^^^^^^^    --
67
68 error: using `print!()` with a format string that ends in a single newline
69   --> $DIR/print_with_newline.rs:38:5
70    |
71 LL | /     print!(
72 LL | |         "
73 LL | | "
74 LL | |     );
75    | |_____^
76    |
77 help: use `println!` instead
78    |
79 LL |     println!(
80 LL |         ""
81    |
82
83 error: using `print!()` with a format string that ends in a single newline
84   --> $DIR/print_with_newline.rs:42:5
85    |
86 LL | /     print!(
87 LL | |         r"
88 LL | | "
89 LL | |     );
90    | |_____^
91    |
92 help: use `println!` instead
93    |
94 LL |     println!(
95 LL |         r""
96    |
97
98 error: using `print!()` with a format string that ends in a single newline
99   --> $DIR/print_with_newline.rs:50:5
100    |
101 LL |     print!("/r/n"); //~ ERROR
102    |     ^^^^^^^^^^^^^^^
103    |
104 help: use `println!` instead
105    |
106 LL |     println!("/r"); //~ ERROR
107    |     ^^^^^^^     --
108
109 error: using `print!()` with a format string that ends in a single newline
110   --> $DIR/print_with_newline.rs:51:5
111    |
112 LL |     print!("foo/rbar/n") // ~ ERROR
113    |     ^^^^^^^^^^^^^^^^^^^^
114    |
115 help: use `println!` instead
116    |
117 LL |     println!("foo/rbar") // ~ ERROR
118    |     ^^^^^^^          --
119
120 error: aborting due to 10 previous errors
121