]> git.lizzy.rs Git - rust.git/blob - tests/ui/print_with_newline.stderr
use a structured suggestion for char-lit-as-u8
[rust.git] / 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 help: use `println!` instead
19    |
20 LL |     println!("Hello {}", "world");
21    |     ^^^^^^^          --
22
23 error: using `print!()` with a format string that ends in a single newline
24   --> $DIR/print_with_newline.rs:10:5
25    |
26 LL |     print!("Hello {} {}/n", "world", "#2");
27    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
28 help: use `println!` instead
29    |
30 LL |     println!("Hello {} {}", "world", "#2");
31    |     ^^^^^^^             --
32
33 error: using `print!()` with a format string that ends in a single newline
34   --> $DIR/print_with_newline.rs:11:5
35    |
36 LL |     print!("{}/n", 1265);
37    |     ^^^^^^^^^^^^^^^^^^^^
38 help: use `println!` instead
39    |
40 LL |     println!("{}", 1265);
41    |     ^^^^^^^    --
42
43 error: using `print!()` with a format string that ends in a single newline
44   --> $DIR/print_with_newline.rs:30:5
45    |
46 LL |     print!("//n"); // should fail
47    |     ^^^^^^^^^^^^^^
48 help: use `println!` instead
49    |
50 LL |     println!("/"); // should fail
51    |     ^^^^^^^    --
52
53 error: using `print!()` with a format string that ends in a single newline
54   --> $DIR/print_with_newline.rs:37:5
55    |
56 LL | /     print!(
57 LL | |         "
58 LL | | "
59 LL | |     );
60    | |_____^
61 help: use `println!` instead
62    |
63 LL |     println!(
64 LL |         ""
65    |
66
67 error: using `print!()` with a format string that ends in a single newline
68   --> $DIR/print_with_newline.rs:41:5
69    |
70 LL | /     print!(
71 LL | |         r"
72 LL | | "
73 LL | |     );
74    | |_____^
75 help: use `println!` instead
76    |
77 LL |     println!(
78 LL |         r""
79    |
80
81 error: aborting due to 7 previous errors
82