fork/rust

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

borsAuto merge of #72883 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum49cae55760d

1.44.0
600 B22 linesraw
1error: format argument must be a string literal
2  --> $DIR/derive-in-eager-expansion-hang.rs:4:5
3   |
4LL | /     {
5LL | |         #[derive(Clone)]
6LL | |         struct S;
7LL | |
8LL | |         ""
9LL | |     }
10   | |_____^
11...
12LL |       format_args!(hang!());
13   |                    ------- in this macro invocation
14   |
15   = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
16help: you might be missing a string literal to format with
17   |
18LL |     format_args!("{}", hang!());
19   |                  ^^^^^
20
21error: aborting due to previous error
22