1 error: using `print!()` with a format string that ends in a single newline
2 --> $DIR/print_with_newline.rs:8:5
4 LL | print!("Hello/n");
7 = note: `-D clippy::print-with-newline` implied by `-D warnings`
8 help: use `println!` instead
10 LL - print!("Hello/n");
11 LL + println!("Hello");
14 error: using `print!()` with a format string that ends in a single newline
15 --> $DIR/print_with_newline.rs:9:5
17 LL | print!("Hello {}/n", "world");
18 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
20 help: use `println!` instead
22 LL - print!("Hello {}/n", "world");
23 LL + println!("Hello {}", "world");
26 error: using `print!()` with a format string that ends in a single newline
27 --> $DIR/print_with_newline.rs:10:5
29 LL | print!("Hello {} {}/n", "world", "#2");
30 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
32 help: use `println!` instead
34 LL - print!("Hello {} {}/n", "world", "#2");
35 LL + println!("Hello {} {}", "world", "#2");
38 error: using `print!()` with a format string that ends in a single newline
39 --> $DIR/print_with_newline.rs:11:5
41 LL | print!("{}/n", 1265);
42 | ^^^^^^^^^^^^^^^^^^^^
44 help: use `println!` instead
46 LL - print!("{}/n", 1265);
47 LL + println!("{}", 1265);
50 error: using `print!()` with a format string that ends in a single newline
51 --> $DIR/print_with_newline.rs:12:5
56 help: use `println!` instead
62 error: using `print!()` with a format string that ends in a single newline
63 --> $DIR/print_with_newline.rs:31:5
65 LL | print!("//n"); // should fail
68 help: use `println!` instead
70 LL - print!("//n"); // should fail
71 LL + println!("/"); // should fail
74 error: using `print!()` with a format string that ends in a single newline
75 --> $DIR/print_with_newline.rs:38:5
83 help: use `println!` instead
89 error: using `print!()` with a format string that ends in a single newline
90 --> $DIR/print_with_newline.rs:42:5
98 help: use `println!` instead
104 error: using `print!()` with a format string that ends in a single newline
105 --> $DIR/print_with_newline.rs:50:5
107 LL | print!("/r/n"); //~ ERROR
110 help: use `println!` instead
112 LL - print!("/r/n"); //~ ERROR
113 LL + println!("/r"); //~ ERROR
116 error: aborting due to 9 previous errors