fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
1.7 KiB59 linesraw
1error: format argument must be a string literal
2  --> $DIR/missing-writer.rs:5:21
3   |
4LL |     write!("{}_{}", x, y);
5   |                     ^
6   |
7help: you might be missing a string literal to format with
8   |
9LL |     write!("{}_{}", "{} {}", x, y);
10   |                     ++++++++
11
12error: format argument must be a string literal
13  --> $DIR/missing-writer.rs:11:23
14   |
15LL |     writeln!("{}_{}", x, y);
16   |                       ^
17   |
18help: you might be missing a string literal to format with
19   |
20LL |     writeln!("{}_{}", "{} {}", x, y);
21   |                       ++++++++
22
23error[E0599]: cannot write into `&'static str`
24  --> $DIR/missing-writer.rs:5:12
25   |
26LL |     write!("{}_{}", x, y);
27   |     -------^^^^^^^------- method not found in `&str`
28   |
29note: must implement `io::Write`, `fmt::Write`, or have a `write_fmt` method
30  --> $DIR/missing-writer.rs:5:12
31   |
32LL |     write!("{}_{}", x, y);
33   |            ^^^^^^^
34help: a writer is needed before this format string
35  --> $DIR/missing-writer.rs:5:12
36   |
37LL |     write!("{}_{}", x, y);
38   |            ^
39
40error[E0599]: cannot write into `&'static str`
41  --> $DIR/missing-writer.rs:11:14
42   |
43LL |     writeln!("{}_{}", x, y);
44   |     ---------^^^^^^^------- method not found in `&str`
45   |
46note: must implement `io::Write`, `fmt::Write`, or have a `write_fmt` method
47  --> $DIR/missing-writer.rs:11:14
48   |
49LL |     writeln!("{}_{}", x, y);
50   |              ^^^^^^^
51help: a writer is needed before this format string
52  --> $DIR/missing-writer.rs:11:14
53   |
54LL |     writeln!("{}_{}", x, y);
55   |              ^
56
57error: aborting due to 4 previous errors
58
59For more information about this error, try `rustc --explain E0599`.