fork/rust

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

borsAuto merge of #66089 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum4560ea788cb

1.39.0
820 B32 linesraw
1error: format argument must be a string literal
2  --> $DIR/issue-30143.rs:4:14
3   |
4LL |     println!(0);
5   |              ^
6help: you might be missing a string literal to format with
7   |
8LL |     println!("{}", 0);
9   |              ^^^^^
10
11error: format argument must be a string literal
12  --> $DIR/issue-30143.rs:6:15
13   |
14LL |     eprintln!('a');
15   |               ^^^
16help: you might be missing a string literal to format with
17   |
18LL |     eprintln!("{}", 'a');
19   |               ^^^^^
20
21error: format argument must be a string literal
22  --> $DIR/issue-30143.rs:9:17
23   |
24LL |     writeln!(s, true).unwrap();
25   |                 ^^^^
26help: you might be missing a string literal to format with
27   |
28LL |     writeln!(s, "{}", true).unwrap();
29   |                 ^^^^^
30
31error: aborting due to 3 previous errors
32