fork/rust

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

borsAuto merge of #69854 - pietroalbini:stable-next, r=Centrilb8cedc00407

1.42.0
558 B24 linesraw
1error: format argument must be a string literal
2  --> $DIR/bad_hello.rs:2:14
3   |
4LL |     println!(3 + 4);
5   |              ^^^^^
6   |
7help: you might be missing a string literal to format with
8   |
9LL |     println!("{}", 3 + 4);
10   |              ^^^^^
11
12error: format argument must be a string literal
13  --> $DIR/bad_hello.rs:4:14
14   |
15LL |     println!(3, 4);
16   |              ^
17   |
18help: you might be missing a string literal to format with
19   |
20LL |     println!("{} {}", 3, 4);
21   |              ^^^^^^^^
22
23error: aborting due to 2 previous errors
24