]> git.lizzy.rs Git - rust.git/blob - src/tools/clippy/tests/ui/print_with_newline.stderr
Rollup merge of #71801 - matthewjasper:operator-subtyping, r=varkor
[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:30:5
48    |
49 LL |     print!("//n"); // should fail
50    |     ^^^^^^^^^^^^^^
51    |
52 help: use `println!` instead
53    |
54 LL |     println!("/"); // should fail
55    |     ^^^^^^^    --
56
57 error: using `print!()` with a format string that ends in a single newline
58   --> $DIR/print_with_newline.rs:37:5
59    |
60 LL | /     print!(
61 LL | |         "
62 LL | | "
63 LL | |     );
64    | |_____^
65    |
66 help: use `println!` instead
67    |
68 LL |     println!(
69 LL |         ""
70    |
71
72 error: using `print!()` with a format string that ends in a single newline
73   --> $DIR/print_with_newline.rs:41:5
74    |
75 LL | /     print!(
76 LL | |         r"
77 LL | | "
78 LL | |     );
79    | |_____^
80    |
81 help: use `println!` instead
82    |
83 LL |     println!(
84 LL |         r""
85    |
86
87 error: using `print!()` with a format string that ends in a single newline
88   --> $DIR/print_with_newline.rs:49:5
89    |
90 LL |     print!("/r/n"); //~ ERROR
91    |     ^^^^^^^^^^^^^^^
92    |
93 help: use `println!` instead
94    |
95 LL |     println!("/r"); //~ ERROR
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!("foo/rbar/n") // ~ ERROR
102    |     ^^^^^^^^^^^^^^^^^^^^
103    |
104 help: use `println!` instead
105    |
106 LL |     println!("foo/rbar") // ~ ERROR
107    |     ^^^^^^^          --
108
109 error: aborting due to 9 previous errors
110