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